Hi Everyone,
am trying to show the comments history in a card layout to fetch the approval of the stage/comments added by the user /name.
Requirement is to show the comments if user is added, if not need to remove the space of the comment. Below is my code and condition seems not working..
Thanks to help here and to learn more!
local!isCommentAvailable: a!isNotNullOrEmpty(index(ri!audit['recordType!{77342a51-f497-4d5d-a8e5-d123d13967df}TMA Audit.relationships.{683d367a-af56-4cf5-af48-16fbd40c5dbb}tmaComments.fields.{719d7da1-f969-4e01-85ad-d4ffb6f37778}comments'],1,null)),
Discussion posts and replies are publicly visible
Hi thanikanti kavitha ,
I think you are expecting like this right ??
Yes, Gayathri exactly. Is it possible to send the reference on this logic to remove the gap if there are no comments added? I appreciate your help.
Sure thanikanti kavitha ,
We should use a!isNotNullOrEmpty() for the specific item in the comments section. The expression a!isNotNullOrEmpty(fv!item[comment]) will display the comment data if a comment is present; otherwise, it will not display anything. I have handled this using Rich Text and written a showWhen condition to manage the display logic
a!isNotNullOrEmpty()
a!isNotNullOrEmpty(fv!item[comment])
showWhen