Skip to main content
    Country/region select      Terms of use
     Home      Products      Services & solutions      Support & downloads      My account     

developerWorks  >  Lotus  >  Forums & community  >  Best Practice Makes Perfect

Best Practice Makes Perfect

A collaboration with Domino developers about how to do it and how to get it right in Domino

Ralf Petter writes:
> ...I hope IBM will enhance Richtext support in lotus script and java in future versions of Notes/Domino. An alternative will be to complete DXL support for rich text so i can make the manipulation in DXL.
Rich text support in DXL is already pretty good. As Bob Balaban has just mentioned in his blog, rich text round-tripping works nicely except for certain weird documents containing CD records that perhaps it's impossible to create in recent versions without use of the C API. I'm told that layout regions also don't work in this context, which Bob didn't mention.
One drawback to using DXL to modify rich text is that you can't do it in the UI without doing a save, since the DXL importer doesn't have an option to import into a note in memory -- only to disk. To get around this, one could use a little temporary database, import the document into there, then use the regular Notes classes to copy the rich text data out into the document you're working on.
> And it would be very helpful if we can make backend changes to rich text visible without saving and reloading the document.
Actually, you can do that. I wrote an Update rich text tip on the in the Notes/Domino forums with sample code. You do have to reload, but you don't have to save.
Admittedly, it would be nice if they could just be updated the same way as other fields, without having to worry about your form event code executing.

Andre Guirard | 4 May 2007 01:10:00 AM ET | Plymouth, MN, USA | Comments (3)

Search this blog 


    About IBM Privacy Contact