SAP Knowledge Base Article - Public

3758515 - Popup.setsize in stories works in full viewer but errors in lite viewer

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

  1. Run a story script that uses Popup and Popup.setSize() in full viewer.
  2. Observe that the popup resizes correctly.
  3. Run the same story and script in lite viewer.
  4. 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

  1. Use full viewer to run stories that rely on the Popup API (including setSize()), as lite viewer does not support this API.
  2. 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