Access Label Data Sources (XML)
Normally, if the Delink Data Source property of a process is true, then data sources in the label template are disregarded except for Database and Alternate data sources. Conversely, if it is false, then Loftware Enterprise SP uses all data sources in the label template. However, if it is false, when the business rule specified by the process is run, any business rule components that would be triggered by the LABEL event are not run.
In some situations, you may want to run business rule components that are triggered by the LABEL event, but also have access to all data sources in the label template. To accomplish this, set Delink Data Source to true and use a Reference business rule component to load the label data sources into the data map.
Important! Content in a business rule is case sensitive. This includes business rule component names, attributes, and values.
In the process, if Delink Data Source is set to true, then the following business rule loads all data sources specified in the label template into the data map.
<?xml version="1.0" encoding="UTF-8"?>
<businessRules configuratorSupport="false">
<businessRule>
<reference name="LABEL_DATA_LOOKUP" namespace="Body">
<triggers>
<trigger eventTrigger="LABEL" priority="0" propagation="AFTER"/>
</triggers>
<referencePath>!DOCUMENT_DEFAULT!</referencePath>
</reference>
</businessRule>
</businessRules>
Tip: If you want to access the data sources in the label template but disregard one of them, you can override the data from a specific label data source by changing the data for that key in the data map. You can use a Map Operations business rule component to accomplish this without changing the data source in the label template.