change a variable between different panels at runtime

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
Ladrone
Posts:14
Joined: Thu Sep 24, 2015 2:09 pm

change a variable between different panels at runtime

Post by Ladrone »

I have to change a variable at runtime in panel A and transfer it to panel B. The problem is that those panels are drag and dropped in the same panel C!!
I try to use addGlobal() and getGlobal(), using an internal DataPoint and use a dollar parameter variable and refresh the same panel using RootPanelOn() to support the translation of the variablile but i'm not able to run a script properly!

Note that in my specific case the variable in question is a type that contain a DP name.

Is there someone that have a solution?

Thanks in advance
Leonardo

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

Re: change a variable between different panels at runtime at runtime

Post by leoknipp »

Hello,

if a variable is created with addGlobal() you can read/write this variable from every script in the same manager.
There is no need to use a datapoint element or a $-parameter to store a value in this variable.

Best Regards
Leopold Knipp
Senior Support Specialist

Ladrone
Posts:14
Joined: Thu Sep 24, 2015 2:09 pm

Re: change a variable between different panels at runtime at runtime

Post by Ladrone »

thanks for the reply!
I try those solution Leopold but I find that read a data in multiple inizialize scripts doesn't work. I solve putting alla scripts in the panel inizialize script.

Leonardo

3 posts • Page 1 of 1