如何从自定义屏幕将值传递给确认弹出窗口 [英] How to pass value to confirmation popup from custom screen

查看:19
本文介绍了如何从自定义屏幕将值传递给确认弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从我的自定义屏幕触发生产订单维护屏幕的完成订单操作,问题是,当触发操作时,我收到一条错误消息,您确定要完成订单吗"这是相同的确认消息我们也从生产订单维护屏幕中获取,我的问题是,我们如何避免此弹出窗口或如何将值从我的自定义图表传递给此弹出窗口.

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();

推荐答案

你可以这样试试!

ProdMaintGraph.ProdMaintRecords.Cache.Graph.Views["ProdMaintRecords"].Answer = WebDialogResult.Yes;

如果在弹出的窗体消息按钮中是Yes,或者是None,OK,Cancel,Abort,Retry,Ignore,Yes,No

If in the popup form Message Buttoin is Yes, or one is this values which are None,OK ,Cancel,Abort,Retry ,Ignore,Yes,No

这篇关于如何从自定义屏幕将值传递给确认弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆