How to pass value to confirmation popup from custom screen

 ̄綄美尐妖づ 提交于 2020-01-06 05:45:09

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!