Forum Discussion
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. )
- Henning3 years agoValued Contributor II
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.
- Pplant3 years agoNew Contributor III
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.
- ckattookaran3 years agoVIP
Not sure why you are thinking of supplied parameter only. The reason why I asked you to describe what you are trying to achieve is to provide different options. You cannot dynamically add components to the dashboard on the fly, so the usual idea is to use an embedded dashboard with parameters and set parameters on the fly. If you look at most of the navigational-type solutions (like People planning), that is how it is implemented. The other option is to add all the objects and then use the IsVisible option to hide them. However, the problem with this approach is the space taken by the components cannot be redistributed. (I might have seen some whether you set the width of the object to a 0 and reclaim the space, but it is complex compared to the embedded dashboard approach)
- JackLacava3 years agoHonored Contributor
Pplant wrote:
I am not aware of any way to dynamically add components to a dashboard at run time
Embedded Dashboards components have a property Embedded Dashboard, which can be set to a Parameter. You can then manipulate that parameter in various ways (including the one Henning mentioned) to specify the name of a different Dashboard to embed, hence loading different controls if required. You will have to refresh or reload the dashboard embedding that component, after the parameter is changed, in order to trigger redrawing of the Embedded Dashboard.
Note that you can create your own Embedded Dashboard component like any other Component, you are not limited to the ones that get created when you create Dashboards.
- Pplant3 years agoNew Contributor III
Hi Jack. Yes, you are correct. But I think that I was a little unclear. I really meant to dynamically add a new component at run-time, such as adding a new supplied parameter to a dashboard, or a new button. I do not mean making a component visible or referring to an already existing component such as a dashboard.
- ckattookaran3 years agoVIP
I've done adding a component dynamically. However, the problem is with the Dashboard cache, I couldn't find a way to refresh the cache other than restarting IIS. However, that cannot be used as a solution.
Related Content
- 11 months ago
- 8 months ago
- 2 years ago
- 3 years ago