On Thu, 18 Mar 2004 17:29:01 +0700, neal <[EMAIL PROTECTED]> wrote:

I'm new to dbforms and would like some advice on the "best" way to
handle a multiple screen registration form

These are the steps I need to accomplish

1)       Present a Student registration form, with name, age, etc.
Student also needs to enter his National ID Number
2)       Compute a student_id based on the National Id and other
criteria, this student_id value is part of the 'student' table.
3)       Goto screen 2, 'parent' input screen. This table has student_id
as a foreign key. The field should be seeded with the correct value and
not be visible.

use a textField and say hidden="true"

My questions are
1 whats the best way to handle #2 ?, a preInsert intererceptor ?, or
some jsp on the page that catches the 'commit' action (how ??)

Yes, exactly.
...
this.setValue(table, fieldValues, "student_id", "2345243542(or whatever the value is)");
...


2 how Do I pre-populate form #2 with some values from form #1.

How about a parent/child form


Put the subform in the body of the main form and use parentField="student_id" childField="student_id"

Otherwise you can tuck things in the session and pull them out for your page.

Thanks in advance,

Neal Katz




-- Shawn

Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to