6. Defining Frames with Visual Queries : Modifying Vision-generated Forms
 
Share this page                  
Modifying Vision-generated Forms
Vision creates a default form for Append, Browse, and Update frames based on the current frame definition. Whenever you select End from the Visual Query Editor menu, Vision generates a new form for the frame, incorporating any changes you have made to the visual query.
However, if you use the forms editor to modify the form (as described in Editing a Form), Vision does not regenerate the form, but merges the existing form with the visual query changes to create a new form with the same name as the current one. This process is known as "form fixup."
In form fixup, Vision reflects the visual query changes on the new form by:
Adding a simple field or table field column for any column whose display status you change to "yes"
Vision places the new simple field at the top of the form; it places the new table field column at the front of the table field.
Removing a field for any column whose display status you change to "no"
Removing the table-field column for any database column in the Detail table for which you add a join
Adding trim on the form to let you know what changes were made
Form fixup ensures that Vision does not overwrite any of the changes that you have made with the forms editor. However, you must edit the form again to incorporate the changes that Vision has made; for example, by moving the new fields to the appropriate location.