Solved

Selected Documents Problem

Posted on 2000-04-24
2
176 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
2 Comments
 

Accepted Solution

by:
Scott2000 earned 50 total points
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 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

11 Experts available now in Live!

Get 1:1 Help Now