Solved

Selected Documents Problem

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

861 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