Solved

Store attachment name in text field

Posted on 2003-12-08
5
277 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now