Function myPanelName() does not return node name

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
dbindernagel
Posts:161
Joined: Mon Feb 23, 2015 1:34 pm

Function myPanelName() does not return node name

Post by dbindernagel »

Dear Forum,

I have a problem with the function myPanelName().
It does return the path of the panel and not the node name from the PanelToplogy.
If have set up the PanelToplogy and the panel does exists. I even tried to remake the topology but this did not help.

My problem is that I want to use the function pt_panelOn() with the parameter iDirection set to 1 or 2, to navigate through the topology. But the function expects the node name and not the panel path.

I'm probalby missing something stupid. What is required for myPanelName() to return the node name from the topology?
pt_panelOn(myPanelName(), myModuleName(), 1);
pt_panelOn(myPanelName(), myModuleName(), 2);
DebugN(myPanelName());
=> ["vision/area_a/panel_a1.xml"]

I expected something like this:
=> ["System1 AreaA1"]
WinCC OA 3.18 P009
(it is a multilanguage project if this matters)

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Function myPanelName() does not return node name

Post by kilianvp »

Are you sure that you have a left (1) and right (2) panel at all?

2 posts • Page 1 of 1