Skip to main content
October 7, 2022

Dynamically setting the bound parameter for a Supplied Parameter

  • October 7, 2022
  • 2 replies
  • 0 views

Is it possible to dynamically set the Bound Parameter of a Supplied Parameter?

I have tried to use and xfbr rule to do this but the supplied parameter but this does not work.

2 replies

October 7, 2022

You will likely need a Dashboard Extender Rule to modify Parameters - as long as you just want to set values, that will work. Look into the properties of the *TaskResult objects, there are properties like ChangeCustomSubstVarsInDashboard and ModifiedCustomSubstVars that should allow you to do that.

If you've tried that already, we might need more info - maybe post the rule and/or relevant screenshots showing the Parameter config.

PplantAuthor
October 7, 2022

Hi Jack,

Thanks for the input. However, the variables that you mention change the value of the parameters and not the bound parameter that is assigned to the supplied parameter dashboard component. (I am already using this to update the values of other parameters).

Pplant_0-1665137223397.png

The supplied parameter references another parameter. I would like to dynamically change the name of the parameter that is referenced. In this case the SWD_copyIDs parameter is being referenced. I would like to change this to another parameter.

Using a supplied parameter in a dashboard means that the value of the referenced parameter can be used in the dashboard (and this will be in the dictionary args.SelectionChangedTaskInfo.CustomSubstVars ... and the other args variables). This is what I would like to achieve because then I can set the value of the parameter.  

October 7, 2022

Not sure what you are trying to achieve. We might be able to provide ideas if you can describe what you plan to do with it. Launch another dashboard or something else?

PplantAuthor
October 8, 2022

Thanks for the input. However, I would like the assignment of the Supplied Parameter to be dynamic, i.e. the Supplied Parameter will exist in the dashboard with the name Param01 but the Bound parameter that this has will be set dynamically, that is at run time. And that this assignment will vary based on user and session (based on other selections that the user has made). 

I am trying to set up a dashboard that will render user input forms and dashboards. The Forms will use have user selections that can be set at run time. I am not aware of any way to dynamically add components to a dashboard at run time that will just impact the current session. So, my ideas is to have some place holder parameters and to assign these to parameters at run time. For the parameter to be available in the dashboard I need the supplied parameter to be set (unless there is a different option. )

October 10, 2022

Hi, did you try using a Load Dashboard Server Task? This one runs when the dashboard is opened and you should be able to apply user-specific parameters to the dashboard. This refreshes each time the dashboard is loaded. 

Henning_0-1665391636353.png

 

PplantAuthor
October 10, 2022

Hi Henning. Yes, I am using the on load task and also on component change. However, I have not found anywhere to set the bound parameter for a supplied parameter.