Forum Discussion
Default values can be a bit funny, because of quirks with how they're (not) populated when the list of choices is not known at the very beginning.
One workaround is to have an extender running at dashboard load, pushing a default value directly in the parameter.
- Richard_Mayo2 years agoNew Contributor III
Hi Jack,
Thanks for this comment - I'm having this exact problem! Do you happen to have (or has anyone else listening) any example code for a dashboard extender that would push a value into a parameter?
I've been using the following which is essentially using the brapi.dashboards.SetLiteralParameterValue command but I've found it doesn't always work. In fact I believe I might have misunderstood the basic function of this code as what it seems to do is populate the "Default value" of a parameter rather than the actual value assigned to it (the latter is what I'm trying to do).
Any suggestions would be welcomed!
Regards,
Richard - Richard_Mayo2 years agoNew Contributor III
- VENKAB052 years agoNew Contributor III
Hi Richard,
The above 2 screenshots might help you.
I followed similar to above and i was able to get the default value.Balaji V
- Richard_Mayo2 years agoNew Contributor III
That's great! Thanks for the quick response. I have had some success now with the new code, so thanks for clearing that up!
I also found quite a useful article here in case anyone else was interested but it's similar to the code you suggested.
Stop confusion with empty parameters in Dashboards - OneStream Community (onestreamsoftware.com)
Thanks again,
Richard
Related Content
- 2 years ago
- 11 months ago
- 2 months ago