Hello everyone, I am not sure if my plan of attack is even correct. I am fairly new to agents. I am creating an Agent (LotusScript), which performs it’s Document Selection through using a Folder (view). The view itself works correctly, but my issues are from there forwards.
General Idea:
For every document in the Selection, I want to examine it’s field values to decide whether or not to silently create a new document. I can create the new document, that is not the issue. The issue is accessing the field values of the documents in the Document Selection.
I’ve always relied on using ‘NotesUIWorkspace.CurrentDocument’ for non-agents, and obviously cannot use that now.
Using Forumla seems to imply that the field values of the Selection documents are conveniently initialized and readily available, unlike LotusScript.
Would something like ‘NotesView.GetParentDocument’ or NotesDocument.GetDocumentUNID’ be useful here? I’m afraid I am a bit strapped for time and cannot afford to play around to test different angles.
Also, I am an avid user of MS Visual Studio and similar robust IDEs. Domino Designer usually makes me cry. Any suggestions as to how to keep the helpful popup window, with the class/library of methods, from breaking? It always breaks on me, to where it refuses to show up until I close/reopen Designer. Extremely annoying and cumbersome.
Subject: for selected documents, use a collection of unprocessed documents
’ here you are getting the value of the subject field on the first document in the selection
Set collection = db.UnprocessedDocuments
Set doc = collection.GetFirstDocument()
string$ = doc.Subject(0)
With regards to your problems with the designer client - I just watched someone using 8.5.1 designer yesterday, and that looks like it would solve your problem, and it is a much nicer solution. (I haven’t had that problem myself.)