Monday, September 6, 2010

A (WB_ Command ) - Add

Syntax: WB_Command=A
Description
This command is used for adding the new records to the database. When executed, it opens the recordset (variables WB_RcdSet must be defined when you use this command), adds the record(s) and displays processed WBSP page or redirects client to URL defined in WB_Redirect variable.
Note: If WBSP page with command A receives form data for more than one record, it will add all the records received. In this case WhizBase requires arrays of WBF_ fields with equal number of members (e.g. if you are adding 3 fields for 4 records you MUST send four sets of WBF_field1, WBF_fied2 and WBF_field3 form fields).

Example of use

Using addition with WB_Command in a WhizBase file.
[FormFields]
WB_BaseName=biblioA.mdb
WB_RcdSet=Titles
WB_Command=A
WB_Redirect=default.wbsp
 
 

No comments:

Post a Comment