iTP Active Transaction Pages (iTP ATP) Programmer's Guide

ATP Objects, Properties, and Methods
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
4-42
atp.fml_table Object
field property (read only)
Each field contained in the FML field table is also a property, with the same name as
the FML field.
atp.fml_table Object Examples
The following three examples show uses of the atp.fml_table object.
Example 1
The following NonStop TUXEDO field table yields the following objects from this
constructor:
ftbl=new atp.fml_table("emp.tbl")
*base 100
# name number type flags comments
MESSAGE_TEXT 1 string - -
#
DEPTNUM 100 short - -
EMPLOYEE_NUMBER 101 short - -
JOBCODE 102 short - -
FIRST_NAME 103 string - -
LAST_NAME 104 string - -
SALARY 105 long - -
Objects created:
ftbl (atp.fml_table)
ftbl.MESSAGE_TEXT (atp.fml_field)
ftbl.DEPTNUM (atp.fml_field)
ftbl.EMPLOYEE_NUMBER(atp.fml_field)
ftbl.JOBCODE (atp.fml_field)
ftbl.FIRST_NAME (atp.fml_field)
ftbl.LAST_NAME (atp.fml_field)
ftbl.SALARY (atp.fml_field)
ftbl.fields[0] to ftbl.fields[6] (atp.fml_field objects)
Example 2
The following script prints out all the atp.fml_field properties of an
atp.fml_table object:
ftbl = new atp.fml_table ("emp.tbl");
for (i=0; i<ftbl.fields.length; i++) {
fld = ftbl.fields[i];
atp.print (fld.name + ': type=' + fld.type_text + '\n');
}