cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Comments using Script in Analytical Designer

Sujit
Active Participant
0 Kudos

Hello all,

I have an SAC Analytic Designer application, I want to add a comment to a selected table cell, using the AD script option. How do i do that ? I wrote below code, but for some reason it does not add comment to the cell.

There are no errors,

Str variable is able to copy and strore the comment text (for test purpose I can also copy it to other textbox) but I do not see a comment getting added to the table data cell. Below is the code.

var str = InputField_17.getValue();

Table_3.getDataSource().getComments().addComment(Table_3.getSelections()[0],str);

TextArea_2.setValue(str);

View Entire Topic
William_Yu
Product and Topic Expert
Product and Topic Expert
0 Kudos

There can be different reasons, I'm not sure if simply get selection of table would be enough as there might be other filters impacting the table.