Forum Discussion
You are talking about literal parameters. However, you are showing a combo box. Combo boxes work differently. They need either a bound list or a delimited list to work. In that case, you cannot use the code to set literalparametervalue, depending on how you want this to work. I'm assuming that you want that to be done when the dashboard launches; if that is the case, then you need to use the Dashboard extender rule and use the XFLoadDashboardTaskResult and set the modifiedcustomsubstvars dictionary (use the name of the parameter).
Dim loadDashboardTaskResult As New XFLoadDashboardTaskResult()
loadDashboardTaskResult.ModifiedCustomSubstVars("YourParamName") = "Valueyouwanttoset"
Once you have that done, add that rule to your load dashboard server task arguments.
- ghoang2 years agoNew Contributor III
Will this pre-set the combo box that is in another dashboard with a default value?
Here's what I want to do: I have a button in HomePage DB, and I want to be able to click on that button from HomePage and have Guided Reporting pulled up with Report Group combo box value set to a default value.
I have tried this but was unsuccessful: Attached a rule with XFSelectionChangedTaskResult to the button in HomePage & set navigation action to open up Guided Reporting. Navigation action works fine but I cannot get the Report Group combo box to set to a default.
I cannot put another XFLoadDashboardTaskResult on Guided Reporting DB because there's already one that's from MP solutions.
- ChristianW2 years agoValued Contributor
You can create your own OnLoadDashbord business rule, then run the Guided Reporting one, save the resulting XFLoadDashboardTaskResult object in a variable and then add/change the custom variables to whatever you like.
This is advanced customization, you should know what you do and test it carefully.
Dim gdrMainClass As New OneStream.BusinessRule.DashboardExtender.GDR_SolutionHelper.MainClass Dim onLoadResult As XFLoadDashboardTaskResult = gdrMainClass.Main(si, globals, api, args) onLoadResult.ModifiedCustomSubstVars.Add("Test", "True") Return onLoadResult
And you should create a new dashboard to replace 0_Frame_GDR_Main_OnePlace to not spoil the installation.
Related Content
- 11 months ago
- 11 months ago