如何在siebel open ui中了解applet模式(How to know applet mode in siebel open ui)
是否有任何siebel open ui函数可以知道applet的模式,就像在查询模式或编辑模式或新模式等?
提前致谢
Is there any siebel open ui function is there to know the mode of the applet,like is it in query mode or edit mode or new mode etc?
thanks in advance
最满意答案
如果您处于事件上下文中且无法访问PM,则可以尝试查找仅在特定模式下处于活动/可见状态的活动控件。
下面是一些通用代码,用于通过确认没有可见的特定类的Go / ExecuteQuery按钮来确认视图中的applet是否处于查询模式:
var eQueryBtnCount = $("body").find(".siebui-icon-executequery").filter(function() {return $(this).css('display') !== 'none';}).length; if (eQueryBtnCount < 1) { // Do Something that is not available in Query Mode }There is a method in siebel open ui with which you can get the mode of the current applet..
SiebelApp.S_App.GetActiveView().GetApplet("Applet_Name").GetMode();this will return the mode of current applet
更多推荐
发布评论