Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Selected Documents Problem

Posted on 2000-04-24
2
Medium Priority
?
185 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 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

885 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