Comments as Single Text on Layouts

A public procedure is available in the Apportunix System Library library app that allows for retrieving the comments for a certain record as a single text.

The procedure that you can use for this is the following:

WSB_CommentMgt.wgFncGetAllCommentsAsText(CommentRecRelatedVariant)

where CommentRecRelatedVariant is a comment line record set to get the comments from.

The procedure will return all the relevant comment line records as a single text. By using this procedure (instead of getting all the records themselves), you do not have to worry about concatenating the texts in the comment records, so you will have nice formatted text that you can print on your report layouts.

The wgFncGetAllCommentsAsText procedure is available in the WSB_CommentMgt codeunit of the Apportunix System Library library app.


Last update: March 10, 2026