Forum Discussion
Hello FabioG
You can actually hide / unhide buttons on a dashboard, programmatically, using dynamic dashboards in workspace assemblies. The XFBR is the easiest way :)
Regards,
Just confirming what Sergey said, This was an example of the power of dynamic dashboards, where you could truly hide/show content rather than a 'soft' hide which often left you with formatting issues / blank space.
- FabioG9 days agoContributor
Hi all,
what I want to show/hide is not the content... While using the Tab Layout, I'd like to show/hide tab buttons programmatically, like adding/removing underlying dashboards. These are not buttons (or components) on a dashboard, they are part of the control.
AFAIK this cannot be done programmatically.
Suppose I have Tab1, Tab2 and Tab3. In certain conditions I want to hide Tab2 button, so the tab control has only 2 tabs available. I was able to do so implementing removing the Tab layout and adding a set of buttons that I can show/hide programmatically.
Regards
FabioG
- JackLacava9 days ago
OneStream Employee
It can be done programmatically just fine, but it's an advanced technique that requires a Dynamic Dashboard Service implementing a Repeater pattern.
The dashboard with a Tab layout would be set as an Embedded Dynamic Repeater which is then populated with a variable number of Embedded Component instances, each pointing to the dashboard to include in each tab. You would have to force a reload of the tabbed interface each time you want to modify the number of tabs, which might be a bit awkward depending on the version you're using (it might not retain the currently-selected tab).
Tabbed layouts are generally discouraged anyway - they look a bit dated and they tend to load all the linked dashboards even if not displayed, which might result in slow loading times. But if you are interested I can put together an example.
- DanielWillis9 days agoValued Contributor
So your dynamic dashboard would be a tab layout and you would programmatically add the dashboards that you want to show up as visible tabs. Adding dashboards is what makes the tabs show up right?
Honestly haven't done it but I don't see why it can't happen.
Related Content
- 4 years ago
- 2 years ago