Symptom
- Unable to exclude widgets when exporting a story to PowerPoint (PPTX) format using the script objects to export to PPTX in SAP Analytics Cloud.
- When using the script object to export to PDF, it is possible to exclude widgets, such as input controls.
Environment
SAP Analytics Cloud 2026.2.10
Reproducing the Issue
- In SAP Analytics Cloud, open a story in Edit mode.
- In the left pane, under Outline of the story, go to Scripting, and add the PowerPoint export format.
- In the right pane, it shows the default exporting option when exporting the story via script. Notice there is no options to exclude widgets from exporting.
Cause
The script object to define the default options used when exporting to PowerPoint (PPTX) via script, does not have the options to exclude widgets from the export.
Resolution
To workaround this limitation, hide the widgets before exporting the story using: setVisible(false), then show the widgets back using: setVisible(true) after the story is exported.
- On the story, add a button to export the story to PowerPoint (PPTX)
- For the action: OnClick of the button, add a script before calling the export to PowerPoint that hide the widgets you do not want to export using: setVisible(false)
- Call the Export to PowerPoint technical object to export the story to PowerPoint using: exportView()
- After the export, show the previously hidden widgets again using: setVisible(true)
For example: If we have a story with the following widgets:
- Table_1
- Chart_1
- InputControl_1
- Button_1
If we do not want to include the following widgets from the export to PowerPoint:
- InputControl_1
- Button_1
And the export to PowerPoint object is called: ExportToPPTX_1
Then the script will be like:
InputControl_1.setVisible(false);
Button_1.setVisible(false);
ExportToPPTX_1.exportView();
InputControl_1.setVisible(true);
Button_1.setVisible(true);
Keywords
SAC, xport, power point, powerpoint, include, exclude , KBA , LOD-ANA-DES , Story Design & Visualizations , Problem
Product
SAP Analytics Cloud 1.0
SAP Knowledge Base Article - Public