Hi everybody,
I guess i'm trying to do something impossbile but I'll try to explain my problem.
I made a function that changes panel in the baseModule and does something else after.
When I call this function from the naviModule, everything is okay.
But, when I call this function from the baseModule itself, the function stop immediatly after the panel changes (I guess it's because the object that called the function disappeared).
I want the execution to continue after the panel changes when I call the function from the baseModule as it does when the function is called from the naviModule.
Does anyone knows how I can do that ? (not sure if my explanation is clear)
Thank you.
Function stops when panel changes
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Function stops when panel changes
Hello,
when the panel is closed all running scripts for this panel are stopped.
For the naviModule it is working because the panel is not closed.
You can make a dpConnect() (for specific datapoint-elements at the naviModule) and at the work-function the function is executed.
The dpConnect() can be made to the elements for the _Ui-datapoint which are set when the root panel is changed. Then you can detect which panel is opened and if the functions needs to be executed.
Best Regards
Leopold Knipp
Senior Support Specialist
when the panel is closed all running scripts for this panel are stopped.
For the naviModule it is working because the panel is not closed.
You can make a dpConnect() (for specific datapoint-elements at the naviModule) and at the work-function the function is executed.
The dpConnect() can be made to the elements for the _Ui-datapoint which are set when the root panel is changed. Then you can detect which panel is opened and if the functions needs to be executed.
Best Regards
Leopold Knipp
Senior Support Specialist
- jfily
- Posts:20
- Joined: Wed Feb 05, 2014 10:59 am
Re: Function stops when panel changes
Thank you for your help.
I succeeded to do what i wanted with dpConnect().
I thought I might be a solution using startThread() ... seems like no.
I succeeded to do what i wanted with dpConnect().
I thought I might be a solution using startThread() ... seems like no.
- fmulder
- Posts:330
- Joined: Wed Feb 03, 2010 9:46 am
Re: Function stops when panel changes
All the code that is 'running' in a panel will go away when you close the panel. That is:
* Any dpConnect() is gone
* Any thread is gone
Quite often, I have dpCOnnects() in my basepanel doing stuff like navigation.
Good luck
Frenk Mulder
"share the fun"
* Any dpConnect() is gone
* Any thread is gone
Quite often, I have dpCOnnects() in my basepanel doing stuff like navigation.
Good luck
Frenk Mulder
"share the fun"
- jfily
- Posts:20
- Joined: Wed Feb 05, 2014 10:59 am
Re: Function stops when panel changes
This is exactly what I did.
Thank you for your help.
Thank you for your help.