Symptom
The comment functionality for table is enabled, but dimension comment does not update after triggering the setDimensionComment() API.
Environment
SAP Analytics Cloud
Reproducing the Issue
In an SAC story, select a table cell, then click the button to add dimension comment. The script for Button.onClick() event is like below:
var sel =Table_1.getSelections();
Table_1.getComments().setDimensionComment(sel[0],"Comment Test");
Application.refreshData();
Cause
Other cell, rather than the dimension comment cell, is selected. The setDimensionComment(selection: Selection, value: string) API only works when it gets the selection of dimension comment cell.
Resolution
Ensure that the dimension comment cell is selected before adding the comment.
See Also
Keywords
SAC table issue, dimension comment update, table cell selection, SAC API, setDimensionComment function, comment functionality issue, table data point, Analytics Designer, SAC story, comment update failure, dimension cell functionality, table comment error, SAC table refresh , KBA , LOD-ANA-AD-INF , Analytics Designer Infrastructure , Problem
SAP Knowledge Base Article - Public