To Know More, Visit: https://www.igmguru.com/erp-training/...
There are several ways to hide and show tables or charts in SAP Analytics Cloud (SAC), depending on your specific needs:
1. Using the Styling Panel:
For initial visibility: In the Styling panel of the chart or table, you can find a "Show this item on run time" option. Unchecking this will hide the component when the story initially loads.
With Tabstrip: If you're using a Tabstrip to organize your content, you can configure widgets to show or hide based on the selected tab. This is done within the Tabstrip's settings.
2. Using Scripting (for more dynamic control):
You can use scripting to control the visibility of charts and tables based on user interactions or data conditions. The setVisible() function is key here. For example:
JavaScript
// Hide a chart
Chart_1.setVisible(false);
// Show a table
Table_1.setVisible(true);
This allows you to create interactive experiences where users can toggle between different views or where the display changes based on filter selections.
3. Show/Hide Button:
You can add a "Show/Hide" button to your story, which allows users to toggle the visibility of specific components. This is a simple way to give users control over the level of detail they see.
4. In-Cell Charts:
If you want to display a chart within a table, you can use in-cell charts. This can be useful for showing trends or comparisons within a tabular format. To "hide" the chart, you would simply revert to a standard table view.
Important Notes:
SAP Analytics Designer: If you're using SAP Analytics Designer, you have more advanced options for controlling visibility through scripting and events.
Performance: Hiding and showing components can impact performance, especially with complex stories. Consider optimizing your design to minimize unnecessary rendering.
Remember to choose the method that best suits your requirements. For simple show/hide functionality, the Styling panel or a Show/Hide button might suffice. For more complex interactions or dynamic behavior, scripting will be necessary.