Solved

Store attachment name in text field

Posted on 2003-12-08
5
281 Views
Last Modified: 2013-12-18
I have 3 rich text fields(xRT, yRT, zRT), where user can attach the .gif,.jpeg files.
To get the name of above files which attached in RT fields. I have created 3 text field(x,y,z)

I want to store the attachment name of xRT field in xfield and yRT fieds attachment name in y field and so on.

How can i control that only xRT fields attachment name should store in x field and not in other field.

Thanks in advance
Jagan

0
Comment
Question by:Jagannath11
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 31

Accepted Solution

by:
qwaletee earned 30 total points
ID: 9895285
Dim rtf as notesRichTextField
Set rtf = doc.getFirstField("xRT")
Dim sep as string, fileNames as string
sep = ""
If IsArray(rtf.EmbeddedObjects) Then
  Forall o in rtf.EmbeddedObjects
    fileName = fileNames & sep & o.Source
    sep = ","
  End Forall
End If
doc.x=fileNames

Now x hs only xRT embedded file names.  Similar for the rest.
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 9895351
Why can't we use @functions?

@If(@Attachments(field);@AttachemntsNames...

Can be done Qwaletee?
0
 

Author Comment

by:Jagannath11
ID: 9895871
madheeswar, i think we can not pass field name like you propose.

Qwaletee, I am using notes 5.10 and not able to find notesRichTextField class, using above code not able to solve the problem.Is there any other way using formula.
please advice
0
 
LVL 15

Expert Comment

by:Bozzie4
ID: 9896700
It's notesrichtextitem

Tom
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9917200
Oopsie me!  Yes, Dim rtf as notesRichTextItem
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question