Hi,
I've set a dollar param in the panel topology (ex: $title = "My title" ), but I cannot access it from within the panel script. DebugN($title) prints an empty string.
The only function that returns me something is getDollarParamsFromPanel() that returns me the dollar param name, but not the value !
Is there a solution ?
Get dollar params in CTRL from panel topology
Search
Re: Get dollar params in CTRL from panel topology
The Panel Topology function only works within a template. If you open the panel elsewhere it will not pass the parameter.
-
- Posts: 373
- Joined: Tue Jan 15, 2019 3:12 pm
Re: Get dollar params in CTRL from panel topology
I prefer to use the dollars property to access the dollar parameters, but it does not seem be in the documentation (yet). It returns a mapping and from the panel itself 'self.dollars' can be used to access it.
You could also try the 'getDollarList' and 'getDollarValue' functions.
However as already mentioned it only returns a value if dollar values were passed along during the opening of the panel. The templates can be taken as an example for your own template.
You could also try the 'getDollarList' and 'getDollarValue' functions.
However as already mentioned it only returns a value if dollar values were passed along during the opening of the panel. The templates can be taken as an example for your own template.
Re: Get dollar params in CTRL from panel topology
A value for a $-parameter defined in the panel topology only is passed to the panel when it is opened using the CTRL functions for the panel topology.
When opening the panel with standard functions, e.g. RootPanelOnModule(), the values for the $-parameters must be defined at the function call.
Best Regards
Leopold Knipp
Senior Support Specialist
When opening the panel with standard functions, e.g. RootPanelOnModule(), the values for the $-parameters must be defined at the function call.
Best Regards
Leopold Knipp
Senior Support Specialist