Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

How can I tell if a RTF-lite field contains a PDF file?

I have multiple RTF-lite fields witth various names in Notes documents. I need to put icons in a view to show if these fields contain PDF files loaded to or not.
Previously, I loaded a single PDF to a standard RTF 'body' field, and used @attachments function to determine this, but with the multiple RTF-lite fields this does not seem to work.
My first idea was to test the @length of the RTF-lite field, but I can not get thet to work either.
0
trnie
Asked:
trnie
1 Solution
 
daj_ukCommented:
@AttachmentNames returns that names of any attachments to the document, including those on an RTLite filed.  Using this you could work out if it is a PDF and show an appropriate icon on the view column....

In my example, I created a Column with the following formula

@If(@Contains(@UpperCase(@AttachmentNames) ;".PDF");5;0)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now