Hi all,
I'm calling Panels with pt_panelOn(). Is that the right/best way to do that?
The Problem is, that these Panels don't appear in the history of Panels.
So, if I want to jump back with ptnavi_HistoryBack() it doesn't jump to that panel but to the on before.
Is that a bug or don't I know how to use it?
Greetings,
Robert Nickel
With pt_panelOn() opened Panels don\'t appear in the Panel history
- robertnickel
- Posts:4
- Joined: Wed Nov 21, 2012 4:36 pm
With pt_panelOn() opened Panels don\'t appear in the Panel history
- fmulder
- Posts:330
- Joined: Wed Feb 03, 2010 9:46 am
Re: With pt_panelOn() opened Panels don\'t appear in the Panel history
Robert,
Open the WinCC OA ctrl libraries and look for the functions 'ptnavi_HistoryBack()'. You'll find this one in ptNavi.ctl. You'll see that it uses a mapping to navigate to the previous panel. You'll eventually find that this mapping is being filled by a function called ptNavi_HistoryAdd().
When you scan for psNavi_HistoryAdd() then you'll find (pt.ctl) that it is being called from pt_PanelOn(). So far, so gooed.
However : Look at the arguments of this function:
pt_panelOn(string panelName, string sModuleName, int iDirection, string strServerName="",
int iUpdateNavigationButtons = 0, int iUpdateHistory=1)
Please check the arguments of your function. Make sure your last argument is a '1'.
When this doesn't help, then:
* Check the source code of pt_PanelOn()
* Add some DebugN() to pt_PanelOn()
Good luck
Frenk Mulder
Open the WinCC OA ctrl libraries and look for the functions 'ptnavi_HistoryBack()'. You'll find this one in ptNavi.ctl. You'll see that it uses a mapping to navigate to the previous panel. You'll eventually find that this mapping is being filled by a function called ptNavi_HistoryAdd().
When you scan for psNavi_HistoryAdd() then you'll find (pt.ctl) that it is being called from pt_PanelOn(). So far, so gooed.
However : Look at the arguments of this function:
pt_panelOn(string panelName, string sModuleName, int iDirection, string strServerName="",
int iUpdateNavigationButtons = 0, int iUpdateHistory=1)
Please check the arguments of your function. Make sure your last argument is a '1'.
When this doesn't help, then:
* Check the source code of pt_PanelOn()
* Add some DebugN() to pt_PanelOn()
Good luck
Frenk Mulder