SAP Knowledge Base Article - Public

3563624 - SAC : onSelect() event script is not working for Single Selection Mode

Symptom

  • With an onSelect() API event written on the script for table, when selecting the member cell, nothing happens, we expect to get the OnSelect() event executed with applied filter based on the user selection.
  • It's not working when the user selects the cell for the first time, but when user press any button from Keyboard (example : right arrow keyboard) after selection, it's working as a work around.
  • The styling of the table is set to "Single cell" in Selection type mode for table :
    Table_Styling_Type_selection_Single.jpg

Environment

  • SAP Analytics Cloud (Enterprise) 

Reproducing the Issue

  • Open story in view mode with table
  • Click on the leaf node cell and see if the OnSelect() event is triggred with applied filter based on the selection.

Cause

This is a defect due to the call of "SelectionMode" and "SelectionStrategy" : left-clicking the table cell didn't trigger "OnSelect" event. The event was not triggered because "SelectionMode" is "SingleCell".

Resolution

  • The fix of the issue is included in SAC 2024.21.15 and later version.
  • As workaound, if possible, switch the Selection Mode from Single to Default, this would also solve the issue and there would be no need to use the keyboard right arrow key workaround.

See Also

Your feedback is important to help us improve our knowledge base.

Keywords

OnSelect(), SelectionMode, SingleCell, SelectionStrategy , KBA , LOD-ANA-TAB , Table , Problem

Product

SAP Analytics Cloud all versions