If this is not possible then is it possible to fire an update on more than
one row at the same time. All the rows belong to the same table.
Not sure. Setting "<db:dbform autoUpdate="true" would process all changed rows but that would be sequentially.
-----Original Message----- From: Sudeep Dsouza Sent: Wednesday, April 28, 2004 3:59 PM To: [EMAIL PROTECTED] Subject: Additional input values in the form
Hi,
I have some additional input values in a form that are not present in the
table definition that need to be processed in my interceptor.
I have the following code segment to display all the values in the
fieldValues object I see only the fields that are part of the table
definition but I do not see any of the additional fields - there are quite
a few of them and their number can vary.
If you wanted them to appear in FieldValues they would need to be declared in a table definition (or an alias).
Otherwise use something like:
<tr> <td> <textarea name="testtest"></textarea> </td> </tr> and in your interceptor:
request.getParameter("testtest");
public int preUpdate(HttpServletRequest request, Table table,
FieldValues fieldValues, DbFormsConfig config, Connection con)
throws ValidationException { java.util.Iterator iterator = fieldValues.elements();
while (iterator.hasNext()) { FieldValue value = (FieldValue)iterator.next(); System.out.println("*************************"); System.out.println(value.getField().getName()); System.out.println(value.getFieldValue()); System.out.println("*************************"); }
return GRANT_OPERATION; }
Is there any way that I can force these additional fields to be sent to the interceptor or any way that I can get hold of these values.
Thanks in advance, Sudeep.
-- Shawn
Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms