Symptom
- Inconsistent behavior when using the Popup object and its setSize() method in stories.
- In full viewer, the popup resizes correctly.
- In lite viewer, the same script raises an error.
Environment
SAP Analytics Cloud
Reproducing the Issue
- Run a story script that uses Popup and Popup.setSize() in full viewer.
- Observe that the popup resizes correctly.
- Run the same story and script in lite viewer.
- Observe that an error occurs and the popup does not resize.
Cause
Lite viewer does not support the Popup API (including setSize()), which leads to errors when the script runs in lite viewer.
Resolution
- Use full viewer to run stories that rely on the Popup API (including setSize()), as lite viewer does not support this API.
- To open the story directly in full viewer as a workaround, turn on the “Data change insight” toggle for the story.
See Also
Keywords
SAC, story, popup, setsize, lite viewer, full viewer, scripting, onclick, popup api, resize, error, unsupported, limitation, workaround, data change insight , KBA , LOD-ANA-DES , Story Design & Visualizations , Product Enhancement
Product
SAP Analytics Cloud all versions
SAP Knowledge Base Article - Public