Question: sending mail with an RTF field

I have a field, displaying as an RTF_AREA.

I want to include this field in the body of an email message.

Doing this all RTF code is included in the message.

Can somebody hint me on how to isolate the text from the RTF code or suggest me another method of working.

The RTF field and formatting is something I can’t get rid of…

Thanks,

Marcel

The html/rt_area have a method getAsPlainText() wich returns the plain text in the component

Thanks Jan,

But I query a table, work on the contents of the retreived data and then use that data to send it via email.

So what I would need is a getStringAsPlainText… Is that possible?

I the meantime I will fill an extra field with the content of the query…

Anyway, thanks for your help again!

Not possible, if you query yourselfs you have to handle the data yourselfs.

Jan Blok:
The html/rt_area have a method getAsPlainText() wich returns the plain text in the component

Sorry Jan, but could you tell me where I can find it? I looked into Method Editor, but I didn’t find it… :oops:

Servoy 1.2 rc7 method editor, elements.<html/rtf_fieldName>.getAsPlainText()

Hello Jan,

When I do what you suggest I still have an issue.

With a HTML_AREA I get the text but including the HTML tags…
With a RTF_AREA I get no text at all…

I work with rc7 and panther…

Will be fixed in Servoy 1.2 final

Great, can’t wait anymore :D

Any idea when???

Most likely this week.

Jahoo :D