SAP Knowledge Base Article - Public

3603898 - Unexpected Hierarchy Display on table after executing onSelect() function in SAP Analytics Cloud (SAC)

Symptom

  • An unexpected hierarchy is displayed on table after executing table.onSelect() function.
  • The refreshData() API is executed after setVariableValue() API

Environment

SAP Analytics Cloud

Reproducing the Issue

  1. Open the affected SAC story.
  2. Click the cell to trigger table.onSelect() function.

Cause

The refresh will be triggered after executing setVariableValue() API. It's no need to use refreshData() API to refresh again.

Resolution

Remove the refreshData() API.

See Also

Keywords

SAP Analytics Cloud, Data Visualization, Unexpected Hierarchy, Incorrect Values, Live Connection, Underlying Code, Table_2.getDataSource().refreshData() , KBA , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , Problem

Product

SAP Analytics Cloud all versions