The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
RaphaelV
1 month agoNew Contributor II
Event Listeners / Custom Control in a Dynamic Dashboard
Hello,
To standardize the look and feel of my dashboards, I would like to create a reusable dashboard template for a toolbar. The Menu component seems well suited for this purpose. However, some actions (for example, Save) cannot be defined at the menu item level and are only available at the menu component level.
As a workaround, I am using Event Listeners: each menu item sends a parameter value, which is then used as the Event Listener name. This allows me to have one menu item that performs a Save action, another that launches a business rule, another that opens a dialog, etc.
This approach works fine until the Custom Control dashboard is embedded in a Dynamic Dashboard. The issue can be easily reproduced by embedding the dashboards described in this blog post into a dynamic dashboard.
Any help or guidance would be greatly appreciated.
Thanks in advance.
Hi RaphaelV
I think you can also achieve what you want without using Dynamic Dashboards or Custom Controls
Since we can return a string ParameterValue property from the Menu e.g. assigned to the Bound Parameter and returned by the XFMenuItem selected
In theory you could call Component Service from Menu component e.g. OnMenuSelect where you can decide what to do with that ParameterValue e.g. Save, Open Dialog, etc using the XFSelectionChangedTaskResult object returned (where we can control these actions).
Like all things in OneStream, there are many ways to achieve same result.
Hope this helps
Sam
2 Replies
- sameburn
OneStream Employee
Hi RaphaelV
Dynamic Dashboards are great but they have no awareness of the Custom Control Dashboard Type currently.
You could achieve your use case using either approach here e.g. Dynamic Dashboards or Custom Control (the former requires more code)... But they are not currently mutually exclusive
I hope this helps
Sam
- sameburn
OneStream Employee
Hi RaphaelV
I think you can also achieve what you want without using Dynamic Dashboards or Custom Controls
Since we can return a string ParameterValue property from the Menu e.g. assigned to the Bound Parameter and returned by the XFMenuItem selected
In theory you could call Component Service from Menu component e.g. OnMenuSelect where you can decide what to do with that ParameterValue e.g. Save, Open Dialog, etc using the XFSelectionChangedTaskResult object returned (where we can control these actions).
Like all things in OneStream, there are many ways to achieve same result.
Hope this helps
Sam
Related Content
- 4 months ago
- 4 years ago