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
Dollar-parameter: passing through a variable and not a value
- sblancha
- Posts:64
- Joined: Thu Feb 18, 2016 4:18 pm
Dollar-parameter: passing through a variable and not a value
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Dollar-parameter: passing through a variable and not a value
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
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
> 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?
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
What is meant with "inside panel A"?
Is panel B loaded/inserted as reference in panel A?
Best Regards
Leopold Knipp
Senior Support Specialist
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
>Is panel B loaded/inserted as reference in panel A?
Yes
Yes
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Dollar-parameter: passing through a variable and not a value
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
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
Yes addSymbol() do the job.
Thank you.
Sebastien
Thank you.
Sebastien