on ‎2022 Feb 28 4:21 AM
Hi All,
I see in the Analytics designer there is a option to delete the comments using the context as in the below code:
Table_1.getDataSource().getComments().removeComments({@MeasureDimension: "[sap.epm:M010_10_Accounts].[parentId].&[A134000]", sap.epm:M010_10_Operating_Income_Version: "public.Actual"});
but somehow when we try to write the same code as below; the code is not validated.
Table_1.getDataSource().getComments().removeComments({version: "public.Actual"});
Can you help me resolve the issue. My requirement is to delete the comments for version members.
Thanks & Regards,
Pranav Vyas
Request clarification before answering.
pranavvyas01
I recommend to look API scripts in the standard application "Feature - Use comment features inside applications"
Remove Comment by ID
var sel = RBG_CommentIDs.getSelectedKey();
Table_PlanningEnabled.getDataSource().getComments().removeComment(sel);
RBG_CommentIDs.removeItem(sel);
T_Comment.applyText(" ");
ScriptObject_1.getAllComment();
Remove all Comments
Table_PlanningEnabled.getDataSource().getComments().removeAllComments(GSel);
//GSel - global variable with Type - Selection
RBG_CommentIDs.removeAllItems();
T_Comment.applyText(" ");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 7 | |
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.