Hello all,
I have a web form that uses a Hotspot Resource Link with the following code.
“http://notesapps.abc.com/dev.nsf/clientInfo?OpenAgent&quickSearch&“+@Text(fieldName)+””
The link calls the agent clientInfo and passes the actionType which is “quickSearch” and also the value of the field fieldName.
The agent’s code is as follows:
Dim session As New notessession
Dim contentDoc As notesdocument
Dim db As notesdatabase
Dim queryStringAs String
Dim parseCGI,fName,actionType As Variant
Set db = session.currentdatabase
Set contentDoc = session.documentcontext
queryString = contentDoc.query_string(0)
parseCGI = Split(queryString, “&” )
actionType=parseCGI(1)
fName= parseCGI(2)
print "The first name is: " + fName
This code works fine. The print fName prints the value of the computed field fieldName with default value “David”.
However, if the field fieldName is in edit mode and I enter a text value, the URL Link:“http://notesapps.abc.com/dev.nsf/clientInfo?OpenAgent&quickSearch&“+@Text(fieldName)+”” sends the @Text(fieldName) as empty and thus my agent’s code reads fName= parseCGI(2) as empty and only prints "The first name is: "
Can anyone tell me how I can pass a dynamic field value to my agent using the Hotspot Resource Link.
Thank-you