Where is defined: isModuleOpen() and isPanelOpen() ?

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
frankySie
Posts:30
Joined: Mon Oct 15, 2012 12:01 pm

Where is defined: isModuleOpen() and isPanelOpen() ?

Post by frankySie »

Both methods isModuleOpen() and isPanelOpen()
can't be found when
the method ModuleOnWithPanel() is called in a ctl-script. My ctl-script is located in ../scripts, the script-name is cn_service.ctl.

WCCOActrl (3), CTRL, WARNING, 72, Function not defined, layer/esp/cn_service.ctl Library: D:\\Siemens\\Automation\\WinCC_OA\\3.11\\scripts\\libs\\panel.ctl
Line: 1039, isModuleOpen
WCCOActrl (3), CTRL, SEVERE, 176, Uncaught exception in thread started at cb_seqM_cn_service:
WCCOActrl (3), CTRL, SEVERE, 72, Function not defined, cn_service.ctl Library: D:\\Siemens\\Automation\\WinCC_OA\\3.11\\scripts\\libs\\panel.ctl
Line: 1039, isModuleOpen
Stacktrace:
1: ModuleOnWithPanel(string ModuleName = "ESP_noti_s ...", unsigned x = 10, unsigned y = 10, unsigned w = 300, unsigned h = 200, unsigned iconbar = 0, unsigned menubar = 0, string ResizeMode = "None", string FileName = "layer/esp/ ...", string PanelName = "ESP notifi ...", dyn_string Parameter = ({ 1 items })) at panel.ctl:1039
2: cb_seqM_cn_service(string dp = "System1:ES ...", bool bVal = TRUE) at ESP_lib_init.ctl:147



A use of #uses "panel.ctl" do not help because both methods are not defined here. And, as shown in the log-lines, the panel.ctl is available by default.
What should be the correct way to include both methods isModuleOpen() and isPanelOpen()

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Where is defined: isModuleOpen() and isPanelOpen() ?

Post by leoknipp »

Hello,

the functions isPanelOpen() and isModuledOpen() can only be used in the UI-manager, therefore you get an error when calling them at a CTRL-manager.

Best Regards
Leopold Knipp
Senior Support Specialist

2 posts • Page 1 of 1