tmp:=" Sr.No.
...................Description.................. Price
Price
";
@For(i:=1;i<=@Elements(PUR_Des);i:=i+1;
tmp:=tmp+"
"+@Text(i)+"
"+PUR_Des[i]+"
");
“<table border=0 width=100% id=table1 style=border-width:1px; border-style:solid; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px>” +tmp+ “”
above is my code in computed text passed through HTML
now i am generating text fields through this code and giving default value as rate.
now, if user changes the data from this text fields then i want to save this changes in multivalued fields.
can I achieve this
please reply…
please get back to me if u have some doubt in understanding my problem… please help
Thanks…
Subject: saving data from HTML fields
Hi, Whenever there is an HTML generated field in a form, it will give an error on submit. The reason is, domino will not be abale to match that HTML field with any of the Notes fields (which are also data stores) and hence will generate an “Item not found” exception.
To avoid, this u need to create a hidden field with the same name as the HTML field. This way, when u will submit the form, the value entered in the HTML field will automatically get saved in the hidden field with same name (without any additional coding required).
In your case you are generating the multiple fields. To achive this u need to take care of the following:
-
All generated HTML fields to be of the same name. E.g Excess and NOT Excess1, Excess2, Excess3…
-
Create a hidden multivalued field with the same name E.g Excess
-
Write javascript to concatenate all values from the HTML fields and assign the value to the hidden multivalues field before submitting the form.
Hope this helps !!!
Subject: RE: saving data from HTML fields
thanks a lot for response…
one more doubt, is this will work on client.
bcoz, i took one simple (notes) text field(not multi value)…
and as u told i gave same name as HTML text field…if i save the form through web changes made in HTML field get saved in notes field…
but on client it doesnt work… should i use 2 different methods for client and web please let me know…
My aplication is both client and web base.
Thanks a lot
Subject: RE: saving data from HTML fields
This method will not work on Notes client. You will need to follow a completely different approach on client (like opening a dialogbox etc…)