Title: Inserts and the select tag
If you want to use insert you must specify a table. Otherwise dbforms do not know in which table you want to insert data.
The hidden value just refreshes the form - so which data from wich table do you show?
 
Why do want to insert data into an unknown table?
That can't work.
 
So if you want to insert data you must specify an table. You can use interceptors if you do not want the default behaviour of dbforms - generating sql insert statements.
 
Hope that helps
Henner

 

Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Joe Prosser
Gesendet: Montag, 2. Mai 2005 05:14
An: [email protected]
Betreff: [dbforms] Inserts and the select tag

Hey Folks,

I am building a form that uses dependent select tags.  So in the dependent select field I use org.dbforms.util.ParseUtil.getParameter(request,"custabbrev","-1") in the queryData tag and in the primary select fields tag.

In order to do this, I dont specify a table in the dbform tag, and I use the hidden field with the magic value:

<input type="hidden" name="customEvent" value="re_0_0"/>

The question I have is, how do I do this on an insert form?  I cant have an insert button without a table specified in the dbform tag.  Do I have to fake it some how for inserts using interceptors?  If so, which button do I use?

Thanks,

-Joe


Reply via email to