Notes Rich Text Field validation on Lotus Notes Client Environment

Hi,

I am stuck with validation of a richtext field on Lotus notes client. It needs to be checked whether the field contains any value or not. Please help me asap as my Project Deadline is approaching nearer.

Thanks

Soumya

Subject: Notes Rich Text Field validation on Lotus Notes Client Environment

What’s likely to be in the rich text field? If it’s just text you can use the @Abstract function to get the text and just test against a blank value.

If you need to check for attached filed (embeddedobjects) then use lotusscript in the querysave and check the embeddedobjects property of the notesrichtext item.

Then there’s always the option of doing a search in this forum to get some code already posted (I reckon this might be the quicker way):

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/8b3df10667d355768525719a00549058?OpenDocument

Dan

Subject: RE: Notes Rich Text Field validation on Lotus Notes Client Environment

Hi Dan,

Thanks for your help. Had a query. The link for the code that you have sent, can it validate text and rich text simultaneously in case the field is richtext. If not then what is the way to do that. Awaiting for your reply.

Thanks

Soumya

Subject: RE: Notes Rich Text Field validation on Lotus Notes Client Environment

Once you’ve got your notesitem, check it’s type (all documented in the help file)

Dan

Subject: Notes Rich Text Field validation on Lotus Notes Client Environment

I will say create a Computed Text field. In the Computed formula mention the RTF field name. And then you can validate the Text field easily. If the RTF field is blank then Text field will come blank. So you can validate the textfield value but show message as RTF is blank or something …

I think this will be easier if you want to check only text is enetered in RTF field or not.

Thanks,

Saswat