Configure a Control to Run a Data Source
You can configure a control to run a data source from the Form View of a label template in Label Design
Use the following procedure to configure a control to run a data source from the Form View of a label template in Label Design
- In Label Design
- Associate a data source with an existing data service. For more information, see Configuring Label Data Sources.
- Do the following to associate the form with the data source.
- In the View > Data Sources pane, click the new data source you created in step 2 to display the list of available fields.
- Click and drag a data source field onto a field onto the form to assign the data source as the data ref for that field. Your cursor changes when your pointer is over a field that can accept the data source.
- Do the following to define the trigger or triggers for the control to load data from the data source.
- From the Insert tab, click and drag Run Data Source to the canvas. The Run Data Source Action dialog box appears.
- Trigger Source should be set to the control, and Trigger Event should be set to the appropriate event. For more information, see Select Data Source Queries and Rules to Run.
- Set the Priority if necessary. For more information, see Configure the Running Order for Queries and Rules.
Tip: If the form acts as a trigger for more than one data source and the order in which the data sources are run relative to each other is important, then you must configure values for priority
The order in which actions, rules, or data services that have otherwise identical triggers are run. Priority values are compared only if the actions have the same trigger source, trigger event, and trigger key (if any). The type of trigger source is irrelevant. Among actions, rules, or data services with otherwise identical triggers, the trigger source with the lowest value for priority is run first. for these actions.
- If the data source should only run under a certain condition. Select Conditional, and describe the conditions.
- Enter a Name.
- Select an Operator.
- Enter a Value.
- Select the data source to use for the action from the Data Sources.
- Click OK.