cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to fetch table cell data from analytic application using script and display as text

rijin_baby61
Participant
0 Likes
5,832

Hello,

I have the following table in sac analytic application with just 1 cell, all the filter applied are shown in the screenshot.

I am trying to fetch the data from the data cell to a text box using script.

I tried but doesn't work

var value = Table_1.getDataSource().getData({"@MeasureDimension": "[% Prev Infl]"}).formattedValue;
Text_2.applyText(value);

Can you help me to correct the script to access the cell data

Also if there is a way to access cell value using row column index in getDataSource().getData() kindly let me know

Thank You

Accepted Solutions (1)

Accepted Solutions (1)

Bob0001
Product and Topic Expert
Product and Topic Expert

Try to verify whether your selection is correct. You can do this by logging the output of Table_1.getSelections() from the on select handler of the table.

rijin_baby61
Participant
0 Likes

Thank you bob.meincke

Can you tell me extactly how this can be done?

Marc_Kuipers
Product and Topic Expert
Product and Topic Expert
rijin_baby61
Participant
0 Likes

Thank You.

Answers (0)