cancel
Showing results for 
Search instead for 
Did you mean: 

SAC Planning Comments

richimproving
Discoverer
483

Hello , I need help in knowing how to find the data point comments that were added in a story of SAC Planning.

We added some comments but they suddenly disappear. I know the comments are there because in the model preferences we can see them as attached in the image, but we cant see them in the story

captura-de-pantalla-2023-09-13-124151c.png

kschauer
Explorer
0 Kudos

@richimproving Hi, we have the same problem - did you find a proper solution for that ? thanks 

Accepted Solutions (0)

Answers (1)

Answers (1)

N1kh1l
Active Contributor

richimproving

We added some comments but they suddenly disappear. - You need to report this as incident with SAP to find out what happened.

richimprovingYour comments should be visible in comment column if you add the comment column to the Table widget. Also the cell with comments should show a symbol (green triangle).

Additionally just to have a alternative solution you can script the comment display on a text widget.

var sel = Table_1.getSelections();

var cellSelected = Table_1.getDataSource().getData(sel[0]);
if (cellSelected === undefined) {
	
	TXT_Display_Comments.applyText(" "); // TXT_Display_Comments  is the name I gave to my Text widget
}

else if (sel.length > 0) {
    var comments = Table_1.getDataSource().getComments().getAllComments(sel[0]);
    
    TXT_Display_Comments.applyText(" ");
    for (var i=0;i<comments.length; i++){
		var comment = comments[i];
		
		var comments_text =  TXT_Display_Comments.getPlainText() + "\n" + "Created by :" + comment.createdBy.displayName + "\n" + "Created at :" + comment.createdAt + "\n" + "Comment :" + comment.text;     
		TXT_Display_Comments.applyText(comments_text);
	}
}

Br.

Nikhil