Get provided Dollar Parameters in a Panel

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
6 posts • Page 1 of 1
moto3101
Posts:37
Joined: Tue Aug 22, 2017 2:04 pm

Get provided Dollar Parameters in a Panel

Post by moto3101 »

Hello together,

is it possible to obtain all provided dollarParameters in a Panel even if they are not defined in the panel?

Example:
Lets assume we open a panel with two dollar parameters:

Code: Select all

ChildPanelOn("about.pnl", "about", makeDynString("$foo:bar", "$name:about"), 100,100);
But the about.pnl panel does not have any dollar Parameters, so the when running the code

Code: Select all

DebugTN(getDollarParamsFromPanel(myPanelName()));
in the init of the about.pnl, I will get an empty dyn_string.

Is there another way to still get all the dollarParams which were passed to the panel, even if they were not defined there?

Thanks in advance!

moTo

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Get provided Dollar Parameters in a Panel

Post by gschijndel »

Try 'getDollarList()', this should work with childpanels.

moto3101
Posts:37
Joined: Tue Aug 22, 2017 2:04 pm

Re: Get provided Dollar Parameters in a Panel

Post by moto3101 »

Thanks for your reply, unfortunately this is not the right function. Please reconsider my example above.
The panel itself does not have any dollar parameters defined but is still called with a list of dollar parameters.
I wanted to know whether there is a way to still check during runtime which dollarparameters were passed on to the panel.

Thanks in advance!

moto3101
Posts:37
Joined: Tue Aug 22, 2017 2:04 pm

Re: Get provided Dollar Parameters in a Panel

Post by moto3101 »

Bumping this thread as my question is still open

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Get provided Dollar Parameters in a Panel

Post by kilianvp »

inside the panel you can do

Code: Select all

this.dollars()

mikek10
Posts:20
Joined: Wed Jun 26, 2019 4:05 pm

Re: Get provided Dollar Parameters in a Panel

Post by mikek10 »

I use isDollarDefined and check on a case by case basis rather than obtaining a full list. This seems to work even if the parameters are not actually defined in the panel but only created by the calling function as you describe.

if (isDollarDefined("$A"))

6 posts • Page 1 of 1