How to: |
You can start to configure the variables that you are going to use to calculate the HL counts and carton count. A best practice is to initialize these variables at the start of the process.
To initialize constant values:
The Add New Variable dialog box opens.
Variable Name |
Value |
---|---|
LEVEL1 |
1 |
LEVEL2 |
2 |
LEVEL3 |
3 |
LEVEL4 |
4 |
CTNCT |
0 |
The Project Properties dialog box should now resemble the following image:
You also need to reset these variables in the Transform as it runs. The proper place to do this is the ST segment. At each new ST segment you can reinitialize the counters. To do this, you will add new element tags at the end of the ST segment. You do not have to hide these elements because there are no corresponding elements in the XML to X12 transform in the Ebix.
Your screen should now resemble the following image:
The Output Node Mapping Builder opens.
The Set Mapping Value dialog box opens.
The Set Mapping Value dialog box opens.
The Variables dialog box opens.
The Variables dialog box lists the variables that you configured earlier.
The configured function for the init_hlctr element is shown in the following image.
The new function is appended to the init_hlctr element in the Mapping Values pane, as shown in the following image.
Element |
Value |
---|---|
init_level1 |
@VARIABLE('LEVEL1','SET','0') |
init_level2 |
@VARIABLE('LEVEL2','SET','0') |
init_level3 |
@VARIABLE('LEVEL3','SET','0') |
init_carton_count |
@VARIABLE('CTNCNT','SET','0') |
Your screen should now resemble the following image.
To maintain the integrity of the EDI structure, you must hide the elements that have been added. These elements are initial values, which if displayed in the XML, will cause the XML to EDI transform to fail. Perform the following steps to ensure that these elements do not appear in the transformed output.
The Output Node Properties - init_hlctr dialog box opens.
'A' == B' (OR) '1' == '2'
Note: Since ‘A’ will never equal ‘B’ and the check box indicates if the condition is true to show the node, this condition ensures that the node will not be shown in the output XML.
iWay Software |