Example DAL Script
As indicated above in the DalLibraries control group, LIB entry, Documaker looks in the AOR.DAL file for the scripts listed in the Batch6 control group. The AOR.DAL file is a library with the definitions of the Batch6 DAL scripts shown in Using DAL to Output to a Database Table section.
As you can see in the file, scripts are provided for the Begin and End events at both the Transaction and Batch levels.
This DAL scripting requires Documaker Server to be configured to connect to a database and for the referenced table to exist in that database. The table schema must agree with what the DAL inserts into that table. You do this by performing the following steps:
- Creating the database table in the target database
- Setting up the Documaker Server INI configuration for the connection to that database with the table
- Setting the Documaker DFD (Data Format Definition) to contain all the field values you want mapped from GVM variables to the database table.