CDX100
T-Type External Routines |
Last Revised: 12/24/18 |
When special processing is required to enter, display, or validate a field, an external template based callable routine (T- type external routine) can be written. When interfaced to the Dynamo Data Dictionary, these routines will be called to display, enter, and print records when using the View Manager CDS550, or HTML View Manager CDW550. File Maintenance and other application programs call CDS550 to display and manage standard views. CDS555 can also call T-Type routines to perform custom data validation.
The T-type external routine is recommended over the deprecated C-type and X-type routines. The primary advantage of the T-type routine, is that the entire record template is passed to the external routine. The routine can access and even change other fields in the record.
There is an example program named CDX100 included with Dynamo Tools that can be copied and used as a template when writing T-Type routines.
Calling Format:
CALL "CDX100", S039$, REC$, X100$
CDX100 Arguments | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field | Passed To/From | Description | ||||||||||||||||||||||||||||||||||||||||||
S039$
|
To | All parameters for entry and display. See CDS039. | ||||||||||||||||||||||||||||||||||||||||||
REC$
|
To/From | The templated record containing the field to be displayed, entered or printed. The primary data element used is FIELD(REC$,S039.FLDNAM$,S039.INDEX) or NFIELD(REC$,S039.FLDNAM$,S039.INDEX). |
||||||||||||||||||||||||||||||||||||||||||
X100$
|
To/From |
T-type external routine parameters
|
The lines in yellow are intended to be modified or removed |
|
This example is taken from Dynamo where a piece of rental machinery may have a fuel tank. If a fuel tank capacity is entered, then the operator should also be prompted for the fuel type. This is an example where two data fields are entered within a single T-type called routine. |
|