Print this Page
1.6 Architect
16. Function Change
Close this Page

1.6.16. Change Function:
This is a form of topics showing field values that may be changed.   It has a near identical behaviour to the add and clone functions.
After any field value is changed, its value is automatically changed without the using having any means to prevent the data bengin changed.
The act of closing the browser window creates an event where the data is saved before the changed field value is lost.

Form Design:
The change form is designed as a set of topics holding fields.   The add and clone functions are cloned from the change function with the same topic layout.   The SELECT 4GL line is changed to an INSERT 4GL, the CANCEL menu option added and the menu simplified.   Any derived Lookup or Counter field alues in the change form will not be needed in the add or clone forms.

 
4GL Change Function:
FORM and SELECT defines the record code and "*" in the label declares that all fields are to be selected.
MENU and INCLUDE or an in-line set of menu options from START to END will be provided - see details below.
BODY and START will begin the body as one or more columns.
BODY and COLUMN will define each column with the column number in the Field and column percentage width in the Width - 0 means whatever width is remaining.
FORM and START will begin a form topic.
FORM with any edit code will identify a specific record and field number.
FORM and END will end a form topic.
BODY and END will end the body.
EXIT and CONTENT will show the copyright bar according to configuration details.

4GL Menu Definition:
MENU and START will begin the menu bar.
MENU and CLICK will define a menu option with Label, Title as popup tooltip and Link as web page with optional key passing.   Any number of menu click options may be declared to replace the current contents in the same container.
MENU and POPUP will define a menu option with Label, Title as popup tooltip and Link as web page with optional key passing.   Any number of menu popup options may be declared to create new contents in new containers.
MENU and TEXT will define text in the menu bar - SMALL in square brackets the Link field will make it small font else it is title size.
MENU and CLOSE will define a menu option with Label, Title as popup tooltip and special Link as 1886 for the close tile.
MENU and BLANK will define a blank menu option with special Link as 1888 for the blank tile.   Blank tiles are recommended to keep all menus a consistent ten option tiles wide.
MENU and END will end the menu bar.