Templates Training
Templates Training
APPLICATION PROGRAM
. Get data
. Stores data
Any user who wishes to create a new application on T24 has to make use of an existing program in
T24 called a TEMPLATE in order to
Major Components
When creating a new application, there are various factors that need to be kept in mind, like the
Types of TEMPLATES
History (H): This kind of template will be used when you need to have all the three files created LIVE,
$NAU & $HIS
Unauthorised (U): This kind of template will be used when you need to have only LIVE, $NAU files
created.
Live (L): This kind of template will be used when you need to have only LIVE files created.
Concat (T): This kind of template will be used when you need to have any CONCAT file information.
Work (W): This can be used when you need some table to be created for temporary storage or for any
specific function
Classification of TEMPLATES
Classificatio
n Details
Installation - This covers files like COMPANY, USER, LANGUAGE, where only one
INT version of the file will exist regardless of the number of companies
Customer - for files where the data can be shared between companies. Primarily
CUS static information and tables like Sector
Financial - for files that hold financial level details (amounts, balances etc.) where the
FIN data cannot be shared with other companies.
Temenos has come up with a predefined code (the TEMPLATE) which will be a Building Block for
creating any of the available type of tables.
TEMPLATE
TEMPLATE.FIELDS
Copy these codes and start modifying as per the need and request.
Table Classification
Table type
ID Format
Field Names
Field Properties
Any validations for these Fields
-> F arrays: To define name and to specify field is single value or multivalue
-> N Array: To define maximum and minimum number of characters the field can hold
Example: Following is the way to define a field using the 3 different arrays
F(1)="Fieldname"
F(1)="XX>Fieldname"
Define a sub value field in the following way
F(1)= "XX.XX.Fieldname"
In order to define an associated sub value field the definitions has to be as follows
F(1) = "XX.XX<Fieldname1"
F(2) = "XX.XX-Fieldname2"
F(3) = "XX.XX>Fieldname3"
Z=0
N Array
T Array
Element 1:
The first element of the T array is used to define the type of data the field has to contain
Example: T(1)<1>='A'
The value input for the 1st element refers to a suffix of an IN2 routine
Element 2:
The Second element of the T array is used to define pick lists for a field.
Element 3:
The Third element of the T array is used to make a field a NOINPUT or NOCHANGE field.
T(1)<3>="NOINPUT" (or)
T(1)<3>="NOCHANGE"
Example :
Note: You can refer IN2 Routines in the document “In2 routines.pdf
The variable V is an important common variable used to hold the number of fields in the record and
should be set to Z + 9 for input applications and Z for display only applications (where Z is the last
field defined in the 'F' array). If the standard APIs have been used instead of direct array
manipulation, this is achieved using the Table.setAuditPosition method.
Latest Method:
Template. Fields
Artefact Creation using EB.DEV.HELPER
EB.DEV.HELPER is a standard utility that creates all of the artefacts that are required to run an
application in T24. The key to the record is application that you are working on, and once
verified will perform a number of actions if relevant field is flagged
PGM.FILE Creates a PGM.FILE record based on the information set in the properties array
INSERT Creates the insert file (I_F.MY.APPLICATION) that holds the equated field names.
Uses the prefix defined in the EQUATE.PREFIX property
UPDATE.SS Updates / Creates the STANDARD.SELECTION record via OFS and sets the
REBUILD.SYS.FIELDS flag to ‘Y’
Workshop1: REDO.CREATE.ARRANGEMENT
Properties:
1 Name REDO.CREATE.ARRANGEMENT
2 Product EB
3 File Type H
4 Classification INT
Layout:
XX.NOTES Text field to capture details. Multi value field with the option 35
Non Mandatory.
PROVINCES This should display all the Provinces in the drop down. 20
8 N
Local field 35
13 A
LOCAL.REF
Override field 35
15 A
OVERRIDE
9 Audit fields
16
Audit Fields
Workshop 2: REDO.UPDATE
Properties:
1 Name REDO.UPDATE
2 Product EB
3 File Type L
4 Classification INT
Layout:
0 @ID A 35
1 LIMIT N 30
2 APPRVL.DATE D 10
3 MAX.TOTAL AMT 20
Validate: a. The total of internal amount entered should be defaulted in this field MAX TOTAL
Authorise: Limit, Offered Until and Max total must be updated to a contact table with same @id
(Example: TRG.BP>REDO.CREATE.ARRANGEMENT.AUTHORISE)
Assignment2.
1 Name TRG.CHEQUE.REG
2 Product EB
3 File Type H
4 Classification INT
Prefix: CHQ.REG
Layout:
IN2 &
No. Field Name Length Validations
Edit
Id must start with today’s date hyphen
0 @ID A 35 sequential number. TODAY-00001. Use
F.LOCKING
30
Validation to be done to verify more than 100
1 CHEQUE.ALLOC N Mandator
cheques not to be issued
y
10
append cheque number with company
2 START.CHEQ.NO N Mandator
mnemonic. BNK001
y
10
append cheque number with company
3 END.CHEQ.NO N Mandator
mnemonic. BNK100
y
4 ISSUE.DATE D 10 Default to today’s date
Link to account table. Only customer
5 ISSUED.ACCOUNT N 11
accounts to be inputted
On Authorization cheque number , start number and end number must be update
CHEQUE.UPDATE table
1 Name TRG.CHEQ.UPD
2 Product EB
3 File Type L
4 Classification FIN
Prefix: CHQ.UPD
IN2 &
No. Field Name Length Validations
Edit
0 @ID N 35 Account Number
1 CHEQUE.ALLOC N 30 Update
2 START.CHEQ.NO N 10 Update
3 END.CHEQ.NO N 20 Update