Parameters (containing customer id, product id, etc.) can be passed to your form through the request object.
These values can be inserted into the appropriate (db)textField entries using the 'defaultValue' attribute.
If you do not wish to display these fields, use the 'hidden' attribute.
When the user clicks on the 'insert' button, all values (found in the hidden textFields) shall be used for insert into the database.
Philip Grunikiewicz
Hydro-Qu�bec / Montr�al / Canada
-----Message d'origine-----
De : Marco Pas [mailto:[EMAIL PROTECTED]]
Envoy� : mardi 14 mai 2002 06:45
� : [EMAIL PROTECTED]
Objet : [dbforms] Howto: insert records when there are no TextFields
The following example:
A customer lists all available products, clicks on the product to buy it, and
then gets to the product details. A confirm button has to be shown and when this is pressed a order must be inserted into the orderlines table.
All works fine until the confirmation... I want to insert a record into the orderline table bu the orderline table is not shown on the forms.. How can i still insert a record into
the orderlines table without showing the textfields and using key values from the customer and product... ???
Greetings Marco
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________
DbForms Mailing List
