Symptom
When applying the .onSelect event on some of the input controls, the event is not called.
Environment
SAP Analytics Cloud
Reproducing the Issue
- Create an input control, click to edit the .onSelect event.
- Write a simple script 'console.log("hello");'.
- Run the story, open F12 to check the console logs.
- 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
SAP Knowledge Base Article - Public