Tony Lundstedt 8.May.12 09:10 AM a Web browser Domino DesignerAll ReleasesAll Platforms
* Not an issue anymore. Hitting my head at the wall and remebered I have already solved it.. Way to easy to forget when you stay away from coding for 18 months... arghhh
I got a small issue. I need to read input values from both notes items and html input tags when I "submit a doc" on web.
If I have a notes items (input text box) called RequesterEmailAddress I can run agent on "webquerysave"
Dim s As New NotesSession
Dim db As NotesDatabase
Set db = s.CurrentDatabase
Dim curDoc As NotesDocument
Set curDoc = s.DocumentContext
Print "value= " + curDoc.RequesterEmailAddress(0)
Is very nice and easy. But if I add some html to the form the code won't read it.
I add 50 select options fields. 10 rows with 5 in each row. They are cascading dependent in each row, so depending on field x, the options in field x+1 is set. It is now a JS that build. I can on each row add a new row by script by activating "next row".
<select name='List14' onchange="fillSelect(this.value,this.form['List15'])">
<option selected >Make a selection</option>
</select>
What I then need is to be able to read the option value and from all the field and option values build a new document using another form. But I cannot get my agent to read the posted data. The notes items.. are just fine, html written input tags - no dice. Just cannot get the
curdoc.List14(0) value, no matter how I try. If this was a normal web server (php) it would be easy to get the post data. But I assume I have to "set" something before submit to something in order to be able to read the input data.. but ideas?