Hi Everyone,
Have anyone some experience by using the function "setDollarParams()"? I would like to set automatically some $parameters based on project parameters set as internal DP, but I am not so sure if I understand right the Help description.
A example to easy undestand what I am searching for: I have 1 panel: "PanelA.pnl" inside of the panel there one reference panel called "obj1" This object have 2 dollars "$dollarA" and "$dollarB".
My try would be:
"
openFileParamPanel("PanelA.pnl", ????, "", FALSE):
setDollarParams("obj1", makeDynString($dollarA,$dollarB),makeDynString("AA","BB"));
"
I understand I have to first open the refence parameter panel by using "openRefParamPanel", then set the dollar Values I want and click "ok". Is it right?
I am a little bit stuck on it, as I thought setting dollars from the outside would be much more easier. Any help will be more than apreciated!
Thanks
Use of "setDollarParams()"
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Use of "setDollarParams()"
The function setDollarParams() can only be used in GEDI and is not a UI runtime function.
Do you want to use the values defined on DP elements in GEDI or during runtime when your panel is opened?
Best Regards
Leopold Knipp
Senior Support Specialist
Do you want to use the values defined on DP elements in GEDI or during runtime when your panel is opened?
Best Regards
Leopold Knipp
Senior Support Specialist
- alaralum
- Posts:22
- Joined: Mon Jan 09, 2017 9:56 am
Re: Use of "setDollarParams()"
Offline would be enough. The parameters are predefined and I just would like to "prepare" all the dollars used on the reference panel on the panel.
Once panel is "updated" .I can use it on runtime. No change on runtime is needed.
Once panel is "updated" .I can use it on runtime. No change on runtime is needed.
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Use of "setDollarParams()"
I was looking at the WinCC OA code and I cannot find the function openFileParamPanel().
Have you defined this function on your own?
Best Regards
Leopold Knipp
Senior Support Specialist
Have you defined this function on your own?
Best Regards
Leopold Knipp
Senior Support Specialist
- alaralum
- Posts:22
- Joined: Mon Jan 09, 2017 9:56 am
Re: Use of "setDollarParams()"
It is writtten on the OA help for "setDollarparams()":
"The reference configuration panel is opened by the script openRefParamPanel.ctl."
and later in the example:
" (by clicking on OK in the reference panel)."
That´s why I understand we need to open manually this Dollar parameters panel to modify the dollars and values and click "OK" manually again to confirm the changes.
But i maybe missunderstand the whole. If possible please provide just an easy example to undestand the code and where to execute the code
"The reference configuration panel is opened by the script openRefParamPanel.ctl."
and later in the example:
" (by clicking on OK in the reference panel)."
That´s why I understand we need to open manually this Dollar parameters panel to modify the dollars and values and click "OK" manually again to confirm the changes.
But i maybe missunderstand the whole. If possible please provide just an easy example to undestand the code and where to execute the code
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Use of "setDollarParams()"
As you have mentioned in the WinCC OA Documentation it is described the panel is opened by the script openRefParamPanel.ctl.
The script openRefParamPanel.ctl is not the function openFileParamPanel() as you have written in your code snippet.
The functions defined in the script openFileParamPanel.ctl detect if a panel specific "$-parameter panel" or if the default panel shall be opened.
If you want to define your own configuration panel for a reference the name of the panel must be saved in the parameter "Reference File" in the attribute editor in GEDI.
Best Regards
Leopold Knipp
Senior Support Specialist
The script openRefParamPanel.ctl is not the function openFileParamPanel() as you have written in your code snippet.
The functions defined in the script openFileParamPanel.ctl detect if a panel specific "$-parameter panel" or if the default panel shall be opened.
If you want to define your own configuration panel for a reference the name of the panel must be saved in the parameter "Reference File" in the attribute editor in GEDI.
Best Regards
Leopold Knipp
Senior Support Specialist