cancel
Showing results for 
Search instead for 
Did you mean: 

Sac - Get all dimension comment from a table

0 Kudos
562

hi Expert, 

i need to retrieve all "dimension comments" in a table via javascript.

i tried the following code: 

var a = Table_Input.getComments().getDimensionComment(Table_Input.getSelections()[0]);
console.log(a);

This code works if I select the single row. But what if I need to retrieve a complete array of the table?

Any suggestion? 

thanks a lot

SAP Analytics Cloud  #dimensioncomment

 

Accepted Solutions (0)

Answers (1)

Answers (1)

William_Yu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi rosanna_chiarazzo

   In this case, you need first get the data selection of table via Table_1.getDataSource().getDataSelections();  and then get dimension comments by looping over this data selection .

Best regards, William