Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check for embedded objects in specified field 1

Status
Not open for further replies.

wuneyej

Technical User
Jan 6, 2003
147
US
Using LotusScript, is there a way to check one specified field for embedded objects as opposed to the entire document?

If (doc.HasEmbedded) Then... obviously searches the entire document. How can I get the agent to only search the one field, "ProjectAttachments"? Assuming there is a way.
 
Your field is an object, a NotesItem. Even more, if the field accepts attachments, it has to be a RichTextItem.
Therefor, if you assign the field name to a notesrichtextitem object, you can use the EmbeddedObjects property of that object to check its attachments and cycle through them.

Check your Designer help on the NotesRichTextItem class. You'll find plenty of info there.

Pascal.
 
Pascal...with your advice, and some help from a kind soul at Lotus.com, I was able to get things working.

Thanks!

JP
 
Glad to have been of use.

Good luck for the rest !

Pascal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top