DBB_POST_LOAD
You can execute the DBB_POST_LOAD exit point to provide a custom routine that performs calculations and transformations on the Data Backbone before a Master Template or Quick Template is produced.
When producing a Document Pack, you can only execute this exit point on the Data Preparation Template.
DBB_POST_LOAD PROC transform_data
DO
...
OD
The DBB_POST_LOAD exit point has no parameter and can manipulate the Data Backbone through the _data global variable.
If the DBB_POST_LOAD exit point is not present, a Master Template or a Quick Template is started with the Data Backbone as initialized.
The following example performs a custom transformation. The format_policy_number function must be defined in the Code Library.
DBB_POST_LOAD
PROC transform
DO
(* Format policy number from 1234567890 to 123.456.7890 *)
ASSIGN _data.PolicyData.PolicyNumber := format_policy_number (_data.PolicyData.PolicyNumber)
OD
When the Master Template or the Quick Template is started, the following actions are performed:
- In case the DBB_XMLInput(...) parameter is used, if the DBB_PRE_LOAD exit point is present, this is executed with the XML data as parameter. Otherwise, _data is filled with the XML data.
- Otherwise, the Data Retrieval part of the Data Backbone is executed.
- If the DBB_POST_LOAD exit point is present, it is executed.
- The Master Template or the Quick Template is executed.