CUS2.Creating Local Reference Fields
CUS2.Creating Local Reference Fields
CUS2.Creating Local Reference Fields
Local reference fields are user defined fields and are totally customisable by the end
user.
Once these local fields are created, they can be reused in various applications across
T24.
1.1 The application LOCAL.TABLE is used to create the user defined field and set
properties of that field.
1.2 LOCAL.REF.TABLE is used to link the newly created field to any T24 application.
The process of creating the field is stand alone and therefore a field created can be
reused in any application in T24. You will learn to create a local field and attaching it to
an application in the next few slides.
SHORT.NAME field will hold the actual name of the field that you want to create. The
value given in this field will appear in the application you will attach this field to.
MAXIMUM.CHAR and MINIMUM.CHAR fields are used to denote the maximum and
minimum number of characters the local field can hold. If a value is defined in
MINIMUM.CHAR field, then the local field becomes a mandatory field.
The field CHAR.TYPE holds the information about what type of data can be input in
the local field created.
If you want to pre define values that can be stored in this field, then you can enter
possible values in the field VETTING.TABLE which can be multi valued to store
multiple values. However, it is not mandatory to pre define values into a field.
REMARK field is used to store the enrichment for the value in the VETTING.TABLE
field.
Note that you cannot change the order of local fields. If you try to add a new local field
in between the existing local fields, you will not be able to commit the record. Also, a
local field once created cannot be deleted. Therefore care should be taken before
deciding to create one local field.
Note that the field USR.TYPE is set to ‘I’ which denotes that this is an I-descriptor field
and is not stored with this name in the database. The physical field LOCAL.REF has
been multi-valued to hold the data of the newly created field. Note that this is the third
local field created for this application which is denoted as LOCAL.REF<1,3> in the
field USR.FIELD.NO.
The field USR.VAL.PROG contains the name of the IN2 routine that needs to be
invoked to perform data type validation. For this specific field the routine IN2A will be
invoked as you have set the field CHAR.TYPE to ‘A’ in LOCAL.TABLE application.
The other fields denote the display format and whether it is a single or multi value field
and if it is a language specific field.
The field APPLICATION in this table denotes to which application this local field is
going to be attached to.
DECIS.FIELD holds the field name of the application defined in the previous field
whose value has to be checked to set a condition if any.
The field REPLACE.FILE is used to open an application with respect to the value in
the field DECIS.FIELD. This is used to drill down from one application to another to set
a condition while creating a local field.
REPLACE.FIELD holds the field name from the application in the previous field
against which condition is checked.
The DECISION field holds the operand against the field in REPLACE.FIELD
DECISION.FR and DECISION.TO fields are used to store the range of values to be
checked against the field. If the operand used is ‘EQ’, then you need not specify any
value in DECISION.TO.
As per the setting in the screen shot, using the CUSTOMER field in the ACCOUNT
application, the appropriate CUSTOMER record will be picked up and the value of
2. The application LOCAL.TABLE is used to create the user defined field and set
properties of that field