Solved

Store attachment name in text field

Posted on 2003-12-08
5
276 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
Comment Utility
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
Comment Utility
Why can't we use @functions?

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

Can be done Qwaletee?
0
 

Author Comment

by:Jagannath11
Comment Utility
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
Comment Utility
It's notesrichtextitem

Tom
0
 
LVL 31

Expert Comment

by:qwaletee
Comment Utility
Oopsie me!  Yes, Dim rtf as notesRichTextItem
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

12 Experts available now in Live!

Get 1:1 Help Now