Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Selected Documents Problem

Posted on 2000-04-24
2
Medium Priority
?
183 Views
Last Modified: 2013-12-18
In a VIEW the user will select some documents, click on an Action Button, the Action will prompt the user an InputBox where he can put his comments. The Action will Append the comments in a field on all of the selected document. The action will modify a Field so that the document will be shown in anothe view.

How will I do the above scenario?
On my trials to do it my self I come up with these questions:
How will I get the DocumentCollection that contains only the selected document?
How can I make an agent (that will process selected document) prompt an input box once and then begin the processing of the documents?
0
Comment
Question by:reden
[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
2 Comments
 

Accepted Solution

by:
Scott2000 earned 150 total points
ID: 2746499
Hi Reden,

I have not had time to debug this code, but it might just work........

Regards,

Scott.

Dim docCollection as NotesDocumentCollection
Dim dbCurrent as NotesDatabase
Dim session as New NotesSession
Dim strInput as String
Dim doc as NotesDocument

Set dbCurrent = session.CurrentDatabase
Set docCollection = dbCurrent.UnprocessedDocuments

If docCollection.Count = 0 then
   MsgBox "No documents selected"
   Exit Sub
End if

strInput = InputBox("Please enter your comments: ")

Set doc = docCollection.GetFirstDocument

While Not doc is nothing
   doc.ReplaceItemValue("FIELDNAME", doc.GetItemValue("FIELDNAME")+ ", " + strInput
   doc.Save True, True
   Set doc = docCollection.GetNextDocument(doc)
Wend
0
 
LVL 1

Author Comment

by:reden
ID: 2746626
I tried to use your sample code and modify a little bit, it worked.

then I review the UnprocessedDocuments method see it there myself. I though worked only with Agents.

Thanks and I'll give you the points
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

715 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