[{TableOfContents }]

!!VIEW FORM DEFINITIONS

Forms are the user interface components that allow a user to view and/or maintain data stored in the system tables.  The View Form Definitions (VMFD) form is used to view the form's functionality and details. 
 
Functions provide the rules to access and process the data stored in the tables. Forms are the user interface to view/maintain the data.
%%information Every form is associated with a function, however not every function has a form.\\ \\For example, the function 'C2310_IMADD' is better known as 'Create Record'. There is no 'Create Record' form, only the action executed when the user selects the F6 function key or the green plus sign.%% 

The definition data for the View Form Definitions screen is stored in the [P2K_AM_FUNCTIONS], [P2K_AM_FORM_TABLE_USAGES], [P2K_AM_FORM_GROUPS], [P2K_AM_FORM_ITEMS], [P2K_AM_EXECUTION_RIGHTS], [P2K_AM_PREFERENCE_VALUES], [P2K_AM_MENU_ITEMS] and [P2K_AM_FORM_DRILL_DOWNS] tables.

At the top of the screen, you will see a list of the current forms within the application identified by the following fields: 

;[Function Name|FUNCTION_NAME]: This field displays the function associated to form. 
;[Product|MPD_ID]: This field displays the name of the product to which the function belongs. 
;[Description|DESCRIPTION]:This field provides a short description of the function. 
;[Usage|FUNCTION_USAGE]:This field identifies whether the form table is pre-loaded or user defined.  
By clicking on one of the forms listed, you will be able to see further details about that form in the following fields. 
\\  \\
----
!!Table Usages tab 
The Table Usages tab identifies where the form gathers its data. 

Data can come from one or more database tables or views. If there is more than one source, the way they are joined and their Where Clauses (or files) may also be defined here. 

%%information Where Clauses require familiarity with SQL and databases.%% 

; [Change_Date|CHANGE_DATE]:The date the last change to the table was made.
; [Change_User|CHANGE_USER]:The user that made the last change to the table.
;[Seq#|SEQUENCE]:This field indicates the sequential order by which the tables are linked to the function. 
;[Data Source|DATA_SOURCE_NAME]: This field will hold the official name of the table. 
;[Table Alias|FORM_TABLE_ALIAS]:This field provides the abbreviated table identifier. 
;[Parent Data Source|DATA_SOURCE_NAME]:If this table has a parent table, that parent table will be listed here. 
;[Join Clause|JOIN_CLAUSE]:This field indicates the clause that will join two or more tables or views. 
\\ \\
!!Form Layout tab 
This Form Layout tab displays the information that is on a form and the visual details such as layouts, field labels and widths.  The layout areas on a form, including the form itself are referred to as Form Groups.
; [Change_Date|CHANGE_DATE]:The date the last change to the table was made.
; [Change_User|CHANGE_USER]:The user that made the last change to the table.
;[Seq # |FG_GROUP_SEQUENCE]:This field indicates the sequential order that the groups appear on the form. 
;[Form Group|FG_CODE]:This field provides the official name of the group. 
;[Parent Group|MFG_ID]:If the group is part of another group, that parent group will be listed here. 
;[Layout |FG_LAYOUT]:This field indicates the how the group will be presented. 
;:e.g. as text, table, box or tabs. 
;[Group Usage |FORM_GROUP_USAGE]:This field identifies whether the form group is pre-loaded or user defined.  
!Group Details 
;[SS Rows Displayed |ROWS_DISPLAYED]:For any layout types of 'Table', this field will indicate the numbers of rows to display. 
;[Title |FG_TITLE]:This field will show the title of the group which will appear on form.
;[Title (Lang)|FG_TITLE_TRANSLATE]:If your database uses a secondary language, this field allows you provide the title of the group in that language. 
;:e.g. If the title of the group is 'Find' this field may provide the Spanish translation, 'Buscar'. 
;[Decoration|FG_DECORATION]:This field is used to identify how the form is to be decorated, for example 'Line Border'.  
;[Width|FG_WIDTH]: This is the default width (expressed in pixels) of the group when a user first opens the form. 
;[Height|FG_HEIGHT]: This is the default height (expressed in pixels) of the group when a user first opens the form. 
;[Max W|FG_MAXIMUM_WIDTH]: This is the maximum width (expressed in pixels) of the group if the user stretches their screen. 
;[Max H|FG_MAXIMUM_HEIGHT]: This is the maximum height (expressed in pixels) of the group if the user stretches their screen.
!Group Items
; [Change_Date|CHANGE_DATE]:The date the last change to the table was made.
; [Change_User|CHANGE_USER]:The user that made the last change to the table.
;[Seq # |FG_GROUP_SEQUENCE]:This field indicates the sequential order that the groups appear on the form. 
;[Item Name|ITEM_NAME]:This field holds the official name of the group item. 
;[Type |FG_TYPE]:This field allows you to categorize the group.
;[Width |ITEM_WIDTH]:This field indicates the width of the area for the group item. The size will default in from Personality, however you may change it. 
;[Height|ITEM_HEIGHT]:This field indicates the height of the area for the group item. The size will default in from Personality, however you may change it. 
;:If you change the default size or prompt of a group item and that item is repeated anywhere on the form, those changes will remain.  You will not be able to edit the size or prompt of the second occurrence separately. 
;[LOV |MLOV_ID]:This field allows LOV's to be associated with specific types of fields.

!Item Details
;[Prompt |ITEM_PROMPT]:This field shows the name that will appear on form for the item.  This name will default in from Personality, however you may change it.
;:If a prompt is not specified in IMFD, the 'Field Prompt' from the Column Detail field on [IMCD] will be displayed as the name of the group item on the form. 
;:There are screens where a displayed prompt is not necessary or desired. In this case, you will enter two quotation marks (" ") in the prompt field to get a blank title.
;[Prompt (Lang)|ITEM_PROMPT_TRANSLATE]:If the form is to be displayed in a second language, this field allows you to provide an alternate language name for the group item. 
;[Dftl Sort Order |SORT_DIRECTION]:The Default Sort Direction field indicates how the data in the LOV is sorted. 
;[Format|VALUE_FORMAT]:This field is used to define the date or numeric format. 
;[Item Usage |FORM_ITEM_USAGE]:This field indicates if the item is pre-loaded, user-defined or obsolete.

!!All Form Items (nn)
; [Change_Date|CHANGE_DATE]:The date the last change to the table was made.
; [Change_User|CHANGE_USER]:The user that made the last change to the table.
;[Seq # |FG_GROUP_SEQUENCE]:This field indicates the sequential order that the groups appear on the form. 
;[Item Name|ITEM_NAME]:This field holds the official name of the group item. 
;[Item Usage |FORM_ITEM_USAGE]:This field indicates if the item is pre-loaded, user-defined or obsolete.
;[Form Group|FG_CODE]:This field provides the official name of the group. 

\\ \\

----
![Notes|Edit:InternaVMFD] 	
[{InsertPage page='Internal.VMFD' default='Click to create a new notes page'}]