Dollar-parameter: passing through a variable and not a value

Find and share HowTos to various installations / configurations!
7 posts • Page 1 of 1
sblancha
Posts:64
Joined: Thu Feb 18, 2016 4:18 pm

Dollar-parameter: passing through a variable and not a value

Post by sblancha »

Hello,

I'd like to pass a variable to a dollar-parameter of a child panel. Usually I pass through a value or a dollar-parameter coming from a top panel but in this case I'd like to pass the value of a variable I have defined in the init script of the panel.
I tried the function setDollarParams() but it could not be used in this context.

Cheers,
Sebastien

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

Re: Dollar-parameter: passing through a variable and not a value

Post by leoknipp »

I do not unterstand what you want to do.
If you open a panel you can pass information to the panel using $-parameters.

Do you want to set the value for a $-parameter in the Initialize script of the panel which is opened?

Best Regards
Leopold Knipp
Senior Support Specialist

sblancha
Posts:64
Joined: Thu Feb 18, 2016 4:18 pm

Re: Dollar-parameter: passing through a variable and not a value

Post by sblancha »

> Do you want to set the value for a $-parameter in the Initialize script of the panel which is opened?
I have a panel A. Inside panel A I have a panel B with $-parameter. I don't want to hard-code value of $-parameter of panel B. I want somehow that the init script of panel A set the value of $-parameter of panel B. Am I clear enough?

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

Re: Dollar-parameter: passing through a variable and not a value

Post by leoknipp »

What is meant with "inside panel A"?
Is panel B loaded/inserted as reference in panel A?

Best Regards
Leopold Knipp
Senior Support Specialist

sblancha
Posts:64
Joined: Thu Feb 18, 2016 4:18 pm

Re: Dollar-parameter: passing through a variable and not a value

Post by sblancha »

>Is panel B loaded/inserted as reference in panel A?
Yes

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

Re: Dollar-parameter: passing through a variable and not a value

Post by leoknipp »

If the value defined for the $-parameter is not static you can use the function addSymbol() to load the reference during runtime instead of adding the reference to the panel in GEDI.

Best Regards
Leopold Knipp
Senior Support Specialist

sblancha
Posts:64
Joined: Thu Feb 18, 2016 4:18 pm

Re: Dollar-parameter: passing through a variable and not a value

Post by sblancha »

Yes addSymbol() do the job.
Thank you.
Sebastien

7 posts • Page 1 of 1