Hi,
I am trying to get the value of a text field fro mthe web document.
Here what i have done.
Set webDoc = session.DocumentContext
test2 = webDoc.GetItemValue(“EmployeeId”)(0)
Print test2,“test2”
Where EmployeeId is the id of the editable text field.
When i say print “test2” it shows nothing.
Where i am doing wrong …please help me …
Thanks
Hima
Subject: help me … how to get the editable text field value from web document
Are you running this code in a WebQuerySave agent?If not, then where?
/Peter
hcl-bot
3
Subject: RE: help me … how to get the editable text field value from web document
Hi Peter,
I am running this code in a button, which calls a javascript, which inturn calls an agent…
the above lines of code that i have mentioned is from the agent…
Hima
Subject: RE: help me … how to get the editable text field value from web document
OK, javascript calls the agent… How, exactly, does it do that?
You need to post some code. The JavaScript code that calls the agent would be really good here.
The field from the web page needs to be POST’ed to a form to be able to get the field the way you want to do it in LS.
You might want to take a look at an SnTT I did a couple of years ago: bananahome.com is available for purchase - Sedo.com
I believe it covers what you want to do.
/Peter
hcl-bot
5
Subject: help me … how to get the editable text field value from web document
or …
dim session as new notessession
dim webdoc as notesdocument
dim test2 as variant
set webdoc = session.documentcontext
test2 = webdoc.employeeid
print test2(0)
Does that work?
hcl-bot
6
Subject: RE: help me … how to get the editable text field value from web document
Hi Ibby…Thanks alotfor the response, but it doesnt work…
please suggest seom more ideas please…
Hima
Subject: RE: help me … how to get the editable text field value from web document
This what i have used
and i am trying to fetch editable text box field “EmployeeId” value in the agent. I am nto able to retrive the value present in “EmployeeId”.
Dim webfldvalue As String
webfldvalue=webDoc.GetItemValue(“EmployeeId”)(0)
Print webfldvalue,“webfldvalue”
I tried this also…
webfldvalue=webDoc.GetItemValue(“EmployeeId”).text
Print webfldvalue,“webfldvalue”
but nothing works…
is there anything that i have to set? beforei access the EmployeeId
Hima
hcl-bot
8
Subject: help me … how to get the editable text field value from web document
or …
dim session as new notessession
dim webdoc as notesdocument
dim test2 as variant
set webdoc = session.documentcontext
test2 = webdoc.employeeid
print test2(0)
Does that work?