You need to edit and relocate the map file generated for
a label.
Procedure
- Edit the map file (XML) generated for a
label (LWL) to associate the XML data to the fields required on the
label:
Note: XPath Functions can be used
in the binding, provided the XPath Binding for a RepeatingField represents
a Nodeset.
- Sequence - Sequence="Y" setting
is to be used in instances where a labelfield represents a sequence
of numbers. For example, serial numbers in a table.
- DataType - Set up the relevant DataType
for the LabelField. Valid values are Text,
Date, and DateTime.
- Repeating Element - Specify the RepeatingElement for
the XPath Binding. If no Repeating Element is specified, the element
containing the attribute is used as the RepeatingElement by
default. In this example, the ShipmentLine is
the RepeatingElement:
<LabelField
Binding="/Shipment/ShipmentLines/ShipmentLine/OrderLine/Item/@ItemDesc"
LabelFieldName="ItemDesc" RepeatingElement="ShipmentLine" DataType="Text"/>
- Place the edited XML map file into the Sterling Selling and
Fulfillment Foundation Runtime Template folder by pasting it into
the Runtime > Template > Label > Extn directory.