issue insert text value to RTF_AREA by function

If I create a new record in Servoy 5.1.4 by method and set also text values in to textfields (RTF_AREA) by a function (by i18n and/or a textstring), the text value is not displayed on the jasperreport. I have databaseManager.saveData() in my function and the same property settings in iReport as in Servoy for the textfields. While debugging an other function, started on the new record, to set e.g. a signature under the text and take the ‘oldValue’ in to a variable, the variable is null although the text value is displayed in the developer client!?
When I edit the textfield manually on the form e.g. by inserting a blank, all is working well. Text is displayed on the jasperreport and also the variable ‘oldValue’ is not null.

Do anybody have the same issue and a tip how I could fix that?

Edited 07/27/2010 by Thomas

I could find out that the problem is not by creating a jasperreport. It is a formatting issue at inserting a text by fubction into a RTF_AERA dataProvider!
When I take the text value in a variable I can see the plain text in the Debugger, but it isn’t rtf formatted (like rtf text in an other field) and get lost if I insert the value of the variable into the dataProvider again.
How could I insert and store a text value by function into a RTF_AREA dataprovider correctly?

It would be great to get a hint how I could fix the issue.

Thanks in advance
Thomas

My guess is that either java or javascript are having trouble with the numerous escape chars \ found in rtf files…
These would have to be double escaped if used in a String, so replacing all \ by \
Good luck with that with a RTF file which is full of that for every directive!

Patrick,

my problem is to store plain (not formatted) text by function in a RTF_AERA dataProvider. That means I insert e.g. an i18n text by parameter, relation and so on into a dataProvider. In this case the inserted text is not stored as RTF formatted value. Do I edit the value manually e.g. by adding only a blank, the text value will be stored as RTF.

Regards
Thomas