Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
moto3101
Posts: 37 Joined: Tue Aug 22, 2017 2:04 pm
Get provided Dollar Parameters in a Panel
Post
by moto3101 » Thu Nov 05, 2020 5:49 pm
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 » Mon Nov 09, 2020 8:25 am
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 » Thu Nov 12, 2020 6:24 pm
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 » Fri Jan 15, 2021 4:36 pm
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 » Sat Jan 16, 2021 12:17 pm
inside the panel you can do
mikek10
Posts: 20 Joined: Wed Jun 26, 2019 4:05 pm
Re: Get provided Dollar Parameters in a Panel
Post
by mikek10 » Mon Jan 18, 2021 7:35 am
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"))