You declare a form part in an EGL file, which is described in EGL source format. If a form part is accessed by only one form group, it is recommended that the form part be embedded in the formGroup part. If a form part is accessed by multiple form groups, it is necessary to specify the form part at the top level of an EGL file.
Form myTextForm type textForm { formsize= [24, 80], position= [1, 1], validationBypassKeys=[pf3, pf4], helpKey="pf1", helpForm="myHelpForm", msgField="myMsg", alias = "form1" } * { position=[1, 31], value="Sample Menu" } ; * { position=[3, 18], value="Activity:" } ; * { position=[3, 61], value="Command Code:" } ; activity char(42)[5] { position=[4,18], protect=skip } ; commandCode char(10)[5] { position=[4,61], protect=skip } ; * { position=[10, 1], value="Response:" } ; response char(228) { position=[10, 12], protect=skip } ; * { position=[13, 1], value="Command:" } ; myCommand char(70) { position=[13,10] } ; * { position=[14, 1], value="Enter=Run F3=Exit"} ; myMsg char(70) { position=[20,4] }; end
Form myPrintForm type printForm { formsize= [48, 80], position= [1, 1], msgField="myMsg", alias = "form2" } * { position=[1, 10], value="Your ID: " } ; ID char(70) { position=[1, 30] }; myMsg char(70) { position=[20, 4] }; end
The column value is equivalent to the number of single-byte characters that can be displayed across the presentation area.
validationBypassKeys = [pf3, pf4]
The column value is equivalent to the number of single-byte characters that can be displayed across the presentation area.
The diagram of a form field is as follows:
Your code can access the value of a named field, which is also called a variable field.
If a text form contains a variable field that starts on one line and ends on another, the text form can be displayed only on screens where the screen width equals the width of the form.
Forms that contain fields of type DBCHAR can only be used on systems and devices that support double-byte character sets. Similarly, forms that contain fields of type MBCHAR can only be used on systems and devices that support multiple-byte character sets.
The primitive types FLOAT, SMALLFLOAT, and UNICODE are not supported for text or print forms.
This property can be specified for any item; for example, in a dataItem part declaration.
The value of fieldLen for numeric fields must be great enough to display the largest number that can be held in the field, plus (if the number has decimal places) a decimal point. The value of fieldLen for a field of type CHAR, DBCHAR, MBCHAR, or UNICODE must be large enough to account for the double-byte characters, as well as any shift-in/shift-out characters.
The default fieldLen is the number of bytes needed to display the largest number possible for the primitive type, including all formatting characters.
The default is no.
myArray char(1)[3];
Array elements are positioned in relation to the placement specified for the first element in the array. The default behavior is to position the elements vertically on consecutive rows.
myArray char(10)[5] {position=[4,61], protect=skip, myArray[2] { cursor = yes} };