Académique Documents
Professionnel Documents
Culture Documents
Versions behave like the application itself, but only looks different. Thus all functions
can be used with a version. Versions work with all functions of T24
1. Create a version for the ENQUIRY application with all the mandatory fields
3. The ID should be prefixed with text ‘TEM.TRG’ to denote that the enquiry was
created or opened using the above specified version
4. The Ids of enquiries that begin with a ‘%’ or a Enquiry-LIST should not be
modified
COMI – COMI is a common variable in T24 that holds last input data. Every time when
you tab out of a field, the data that you input in the field is available in the common
variable.
You can notice in the output of the version ENQUIRY,OPEN that the ID is prefixed
with TEM.TRG. You can use the same version
Create a subroutine that validates the value of the CATEGORY field as required.
Attach the routine to your version record use the field CHECK.REC.RTN.
2. Auto Field Routines are used for editing a record before displaying to it the user
3. These routines are executed after the id of the record is supplied by the user and
the corresponding record is fetched from the file, but before the record can be
displayed
4. These routines are to be attached to the field ‘Aut New Content’ in the Version
Application. The name of the routine should be prefixed with an @ symbol when
attaching it to the field. These subroutines should have an entry in PGM.FILE with
PGM.TYPE = 'S' and a corresponding entry in EB.API. These subroutines get
executed for the associated field specified in ‘Autom Field No’.
1. After Unauth Routine is used to edit a record written to the $NAU file
3. Therefore any changes made to R.NEW will not be reflected as it has already been
written to the $NAU file. If any change needs to be made to the record in the $NAU file
at this stage, then a separate write needs to be executed. Do not call
JOURNAL.UPDATE as this is taken care by core T24.
4,5 After Unauth Routine is attached to the field AFTER.UNAU.RTN in the version
prefixed with an @ symbol. After Unauth Routine need to have an entry in EB.API
application
2. Before Auth Routine is invoked during the authorization stage of an INAU record
3. Before Auth Routine is invoked before the version’s Auth routine. The order of
execution is BEFORE.AUTH routine, AUTHORISATION routine, then record is written
to the live file.
4, 5 Auth Routine and Before Auth Routine are invoked before the authorization stage.
The difference between Auth Routine and Before Auth Routine is that Before Auth is
invoked before a F.WRITE is made to the live file. This means that, even at this stage
the value of any field can be modified. However, AUTH.RTN gets invoked after
F.WRITE is made to the file. This means that changes made to R.NEW will not reflect
in the record unless an F.WRITE is made explicitly in the case of Auth routine.
7. Before Auth Routines are attached to the field BEFORE.AUTH.RTN of the Version
prefixed with an @ symbol
DEBIT.ACCT.NO
CREDIT.ACCT.NO
DEBIT.VALUE.DATE
DEBIT.AMOUNT
DEBIT.CURRENCY
• Before this routine is invoked, all standard default and validation processing would
have taken place.
• This routine is invoked after a write is made to the buffer. Any changes made to
R.NEW will not reflect in the record unless a WRITE is made explicitly.