SAP Knowledge Base Article - Public

3426678 - The .onSelect event is not working as expected for some input controls in Optimized Story Experience

Symptom

When applying the .onSelect event on some of the input controls, the event is not called.

Environment

SAP Analytics Cloud

Reproducing the Issue

  1. Create an input control, click to edit the .onSelect event.
  2. Write a simple script 'console.log("hello");'.
  3. Run the story, open F12 to check the console logs.
  4. The "hello" log is not generated.

Cause

Please check whether the type of your input control is supported with the .onSelect event. The onSelect event is only supported for dimension member input controls and calculation input controls, while not supported for other types, such as range filters, dimension input controls and account input controls.

Resolution

By design. This is documented in: Optimized Story Experience API Reference Guide.

See Also

For other restrictions in ODE story, please check: SAP Analytics Help - Optimized Story Experience Restrictions.

Keywords

onSelect, script, support, input control, filter, calculation, calculated measures , KBA , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , LOD-ANA-AD , Analytics Designer , Problem

Product

SAP Analytics Cloud 1.0