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 Optimized Experience Story.

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 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 and dimension input controls.

Resolution

By design. This is documented in: Optimized Story Experience API Reference Guide (Latest Quarterly Version) 

For other restrictions in ODE story, please check:

See Also

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