How to tell if a rich text field has content?

I need to display in a view the fact that a Rich Text field has content. The content can be text, attachments and/or database/document links.

I know using the @Abstract function, on the form, if the rich text field name is Body, create a hidden, computed text field (for example, call it BodyText) with the following value: @Abstract( [TextOnly]:[TrimWhite]; 64000 ; “” ; “Body” ) You then can display the Body Text field in views!

Problem is, this does not tell me about other attachments or links.

Any suggestions or code samples would be great. Thanks!!!

Subject: How to tell if a rich text field has content?

What about using @Attachments, @AttachmentLengths, @Attachmentnames

I use these in view formulae to show the presence of attachments

this one is good for sorting on :

@If(@Attachments > 0; @Sum(@AttachmentLengths); 0)/1000

Subject: How to tell if a rich text field has content?

You can check it off with lotus script:

notesEmbeddedObjectArray = notesRichTextItem.EmbeddedObjects

I’d suggest doing this in the querysave of the documet and just set a flag hasContent = 1 or something, which you can later on conditionally use your example view.

HTH