I would like to say I’m pretty new with Domino/Notes.
I have a form, to be used on the web. I use an agent in WebQueryOpen that gets information from the URL and stores it in Fields on the form. This seems to work fine. To test, I let the agent send me an e-mail with the values of the fields. And they are all correct. Here’s the code I used (fGetParameterValue is a function I use and this works fine):
DocumentID = fGetParameterValue (QueryString, “DocID”)
Source = fGetParameterValue (QueryString, “SRC”)
docCurrent.Reference = Source
docCurrent.DocumentID = DocumentID
Now, I want to use an agent in WebQuerySave. In that agent I want to retrieve the values from the fields Reference and DocumentID.
I tried the following in my agent:
Dim session As New NotesSession
Dim dbCurrent As NotesDatabase
Dim docCurrent As NotesDocument
Dim DocumentID As String
Dim Source As String
Set dbCurrent = session.CurrentDatabase
Set docMail = New NotesDocument (dbCurrent)
Set docCurrent = session.documentContext
DocumentID = docCurrent.DocumentID(0)
Source = docCurrent.Reference(0)
But DocumentID and Source remain blank (or null, not sure).
My agent runs. I also let the agent send me an email and from this mail I can tell the values are blank … What am I missing?
I’m calling the agent from WebQuerySave. I have a button on the form that triggers this, so that should be fine, no?