project open panels

Find and share HowTos to various installations / configurations!
5 posts • Page 1 of 1
xavi.aran
Posts:63
Joined: Thu Apr 21, 2011 1:21 pm

project open panels

Post by xavi.aran »

how can i know the panels opened in a proyect?
i use the function VisionNames() to get the modules, but i can't get the windows/panels openen in each module.

For example, VisionNames returns:

[dyn_string 8 items
WCCOAui2: 1: "WinCC_OA_1"
WCCOAui2: 2: "mainModule_1"
WCCOAui2: 3: "naviModule_1"
WCCOAui2: 4: "menuModule_1"
WCCOAui2: 5: "Alarmas Prioritarias"
WCCOAui2: 6: "VisorAlarmasGen"
WCCOAui2: 7: "Vision_9"
WCCOAui2: 8: "Vision_10"

And i can get the root panel with the function rootPanel(module):

WCCOAui2:["VisioName:WinCC_OA_1 rootPanel:basepanel"]
WCCOAui2:["VisioName:mainModule_1 rootPanel:General"]
WCCOAui2:["VisioName:naviModule_1 rootPanel:Navi"]
WCCOAui2:["VisioName:menuModule_1 rootPanel:Menu"]
WCCOAui2:["VisioName:Alarmas Prioritarias rootPanel:Alarma Emergencia"]
WCCOAui2:["VisioName:VisorAlarmasGen rootPanel:VisorAlarmasGen"]
WCCOAui2:["VisioName:Vision_9 rootPanel:General"]
WCCOAui2:["VisioName:Vision_10 rootPanel:Navi"]


i need the name of the panel of the Vision_9, Vision_10....how can i obtained that?

My idea is obtain a userview of all panels open and save to restore it in a future.
Thanks

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

Re: project open panels

Post by leoknipp »

In the debug statement the names of the root panel for Vision_9 and Vision_10 are listed.
What is meant in detail with "name of the panel"?
Is it the filename?

Best Regards
Leopold Knipp
Senior Support Specialist

xavi.aran
Posts:63
Joined: Thu Apr 21, 2011 1:21 pm

Re: project open panels

Post by xavi.aran »

Yes, the filename i need,to open the same panels in the future

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

Re: project open panels

Post by leoknipp »

The filename cannot be read afterwards.
You can do a dpConnect on _Ui_.RootPanelOrigOn.* and everytime when a panel is opened you get the information for the module name, panel name, file name and other parameters needed to open a panel. This information you can use to save the information for the currently opened panels.

Best Regards
Leopold Knipp
Senior Support Specialist

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: project open panels

Post by Gertjan van Schijndel »

With the function 'panelFileName' you can retrieve the panel file name.

5 posts • Page 1 of 1