mixing RTF_AREA and TEXT_FIELD in a text calc

I have a field that is formatted as RTF_AREA, and another as TEXT_FIELD. Let’s call them letter_text and marker, respectively.

I want to show a concatenated version in a list:
textcalc = marker + ’ | ’ + letter_text
… but since letter_text is rtf, marker is ignored.

Is there a way to strip the letter_text field of rtf tags (i.e. make it a plain text field) so that it can be concatenated with its plain text buddy, marker? I couln’t find a removeTags function, nor could I find such a thing as a plugin feature.

Of course, I can just show two fields, but that’s not as fun! Actually, it would be a waste of screen real estate, too, as the marker field data is only occasionally there, and could be of variable length.

Thanks,

Jim

elements.fieldname.getAsPlainText

:)

Hi Jim,

Check out this earlier post:

utils.stringReplace puzzle - Classic Servoy - Servoy Community

I am sure that it will help you out

Cheers
Harry

Thanks, guys. I’ll try that getAsPlainText function. As someone earlier had discovered, it only shows up in respect to RTF or HTML fields. Makes sense.

Jim