Whenever you want to build an insert page that contains specific fields which you can manually define, the Custom Form Wizard is the right solution. The submitted information in the form can be saved in the database A database refers to data organized and stored on a computer that can be searched and retrieved by a computer program. Most industrial-strength and many smaller database applications can be addressed using SQL (Structured Query Language). (by calling a stored procedure) or not. In the latter case, it could simply be sent as an e-mail to where it is needed to be known.
This wizard is divided into three compulsory steps, based on the type of data the user has to input. If MX Form Validation has been installed, aside from the regular steps required in completing the wizard, a new one will be displayed (as the third out of the four steps). It consists in defining the validation rules for all the fields included in the form generated by the wizard.
The Custom Form Wizard is accessible from two locations:
You can also build the custom form gradually using the form tools and the Custom Transaction server behavior. For more information, see Create custom transactions in multiple steps.
To build the insert page with the Custom Form Wizard, follow the next instructions:
The first step into completing the dialog box requires the user to input basic information about the transaction A transaction is a group of SQL statements whose effects are logically connected. Anything from simple queries to inserting, and deleting operations can be considered a transaction, as well as more complex groups of several statements which accomplish a specific task., like the database connection and the page to which it will be redirected:
To set the dialog box options, follow the next steps:
This dialog box allows you to add fields in your form. You can associate database fields with form controls:
To set the dialog box options, follow the next steps:
This step of the wizard configures the validation rules for each of the form input fields. You can define a rule for each form element, so that bad input will be avoided:
For instructions on completing this step, see Form Validation in wizards.
Remember that this step appears only if you have the whole MX Kollection 3 package installed, or even only MX Form Validation. In this case, a MX Form Validation trigger A trigger is a SQL procedure that performs an action when a transaction (INSERT, UPDATE, DELETE) occurs. You can use triggers to perform validation of input data, to automatically generate a value for a newly inserted row, to read from other tables for cross-referencing purposes, or to support alerts through e-mail messages., with a validation role, will be added to your page.
This last step of the wizard offers you the possibility of editing your own SQL query A query is a SQL command that will extract information from the tables of a database. Essentially, a query is a request for information from your database., that would suit your needs the best:
To set the dialog box options, follow the next steps: