Skip to main content
June 18, 2024
Solved

How to get the audit for comments

  • June 18, 2024
  • 1 reply
  • 0 views

Hi ,

In one of my report the user want to show a column for audit which will show who commented for that variance explanation intersection, can you please help me to get this audit. Please let me know if any more information required. 

Best answer by FredLucas

Hi Ashu_Aswal,

You could achieve that by creating a dynamic calc member and having it returning that info for the required POV using the following api:

Dim objDataAttachmentList As DataAttachmentList = api.Data.GetDataAttachments(memberScript, includeFileBytes, startRowIndex, pageSize)
objDataAttachmentList.Items.Item(0).LastEditedUserName

Note: it is important that you use one of the text view members e.g.: V#Annotation to show that info.

1 reply

FredLucasAnswer
June 18, 2024

Hi Ashu_Aswal,

You could achieve that by creating a dynamic calc member and having it returning that info for the required POV using the following api:

Dim objDataAttachmentList As DataAttachmentList = api.Data.GetDataAttachments(memberScript, includeFileBytes, startRowIndex, pageSize)
objDataAttachmentList.Items.Item(0).LastEditedUserName

Note: it is important that you use one of the text view members e.g.: V#Annotation to show that info.

June 19, 2024

Thank you very much FredLucas for this solution. This worked perfectly.