cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to switch the display of a dimension in a chart from ID to description using script?

RajuRao
Participant
0 Kudos
198

Is it possible to switch the display of a dimension in a chart from ID to description, or to show both ID and description, using scripting in SAP Analytics Cloud (SAC) using buttons?

 

View Entire Topic
jain06
Explorer

Hi,

I have written the script for button to show "Display ID".

Chart_1.getDataSource().setMemberDisplayMode("Dimension 1",MemberDisplayMode.DisplayId);

"Display Description"

Chart_1.getDataSource().setMemberDisplayMode("Dimension 1",MemberDisplayMode.Description);

"Display ID and Description"

Chart_1.getDataSource().setMemberDisplayMode("Dimension 1",MemberDisplayMode.DisplayIdAndDescription);

 

RajuRao
Participant
0 Kudos
It is working perfectly. Thank you very much!