问题
I need to fire Complete Order action of Production Order Maintenance screen from my custom screen, the issue is, when action is fired am getting an error saying, "Are you sure want to complete the order" this is the same confirmation message we get when we do from Production Order Maintenance screen as well, my question is, how we can avoid this popup or how i can pass value to this popup from my custom graph.
ProdMaintGraph.ProdMaintRecords.Current = ProdItem;
ProdMaintGraph.completeorder.Press();
回答1:
You can try it like this!
ProdMaintGraph.ProdMaintRecords.Cache.Graph.Views["ProdMaintRecords"].Answer = WebDialogResult.Yes;
If in the popup form Message Buttoin is Yes
, or one is this values which are None,OK ,Cancel,Abort,Retry ,Ignore,Yes,No
来源:https://stackoverflow.com/questions/56360479/how-to-pass-value-to-confirmation-popup-from-custom-screen