- Danish Ahamed LiakathAli
- PowerBuilder
- Tuesday, 21 April 2020 05:17 PM UTC
We have migrated our current application which is still running in PB 10.2.1 to PB 2019 R2.
We have started testing the application with new version after the migration,we are facing an issue in RTE control.
We are storing the RTE content value in BLOB datatype column. In our current code, we have it as below before copying or pasting from/to RTE.
--when getting the valuing from BLOB
IF ll_pbversion >= 10 THEN
ls_body = String (lblob_body,EncodingAnsi!)
ELSE
ls_body = String (lblob_body)
END IF
--When setting the value to BLOB
IF ll_pbversion >= 10 THEN
lblob_body = Blob (ls_body,EncodingAnsi!)
ELSE
lblob_body = Blob (ls_body)
END IF
I understand this to work around of Unicode to ANSI character in earlier versions.
But now the above conversion returns NULL value and alignment displaying incorrectly.
I have commented out with the EncodingAnsi and changed to (String (lblob_body)/Blob (ls_body)) and enabled the necessary rte properties() and it is displaying correctly.But when we retrieve the data, it is not retrieving any data and the alignment totally messed up.
I have used 'Built-in TX Text Control' at first, in that case the template was not displaying in the correct alignment(when viewing or editing the template content). And then I changed to 'Built-in Rich Edit Control' and everything display correctly, But that retrieval data not displaying data and alignment not displaying correctly in the rte data.
Do we need to make any other additional changes in the code level or property levels?.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.