We have a combo box type of field in a document display in a browser. We are trying to write some LotusScript to obtain the current selected value of the combo box field.
What is the syntax for the LotusScript?
We have tried:
Print doc.P1Status(0)
but it does not work.
Thanks
Subject: LotusScript - value of combo box in browser
That’s correct syntax for LotusScript, but LotusScript doesn’t work in the browser. How are you trying to invoke that code?
Subject: RE: LotusScript - value of combo box in browser
Sorry… this would be an agent that is running the LotusScript.
Thanks
Subject: RE: LotusScript - value of combo box in browser
What is the context of that agent? If you’re trying to run it in the WebQueryOpen event of a new document, it’s not going to work - there is no backend document to obtain the value from.
Subject: RE: LotusScript - value of combo box in browser
Assuming that this is an agent called from the WebQuerySave event of the form:
Dim nses As New NotesSession
Dim ndoc As NotesDocument
Dim varValue As Variant
Set ndoc = nses.DocumentContext
varValue = ndoc.YOURFIELDNAME
’ code to check varValue here.
’ you can easily check the value by using a
’ messagebox call to write the value to the
’ notes log on the server (log.nsf)
’ example:
Messagebox cstr(varValue(0))
Hope this helps!
-Devin.