Create an Inc/Dec Data Source
To create an Inc/Dec data source, a Designer Person who creates and designs label templates, forms, and applications for use by Data Providers. can use the following procedure.
- In Label Design
- In the View tab, click Data Sources.
- Click IncDec, and click
. The Inc/Dec Data Source dialog box is displayed.
- Enter a name for the label data source in the Data Source Name property.
Note: The name of a label data source can include letters and numbers. Additionally, the following characters are permitted but cannot begin or end the name: double quotation marks, single quotation marks, grave accents, hyphens, underscores, and periods.
- Define the label data source in the Definitions section.
- Select Increment or Decrement in the Type property.
- Select a Mode. For more information, see Inc/Dec Data Source Properties.
- Enter a value by which to increment or decrement the count in the By Value property.
- Enter behavior information for the label data source in the Parameters section.
- Select Fixed Start or From Data Source in the Start property.
- Enter a Minimum Value and Maximum Value.
Note: To optimize performance, ensure that the Minimum Value and Maximum Value include the same number of digits. The Minimum Value can be padded with leading zeros.
- Enter a Minimum Length and Maximum Length.
Important! If the label data source is populated from a Prompt, you should ensure that the Max Length property of the label data source and the Max Chars property of the Prompt contain the same value. The Max Chars property is automatically calculated based on the Chars Per Line and # Lines properties.
- If the Start value has or could have more characters than the Max Length value, select an option for Max Length Overrun Mode to control the behavior of the count. For examples, see Inc/Dec Data Source Properties.
- Use Global Setting: Uses the behavior set in the incdec.maxlength.behavior system property.
- Default: The Max Length value does not apply to the first value of the count, but the remaining count sequence is as expected.
- Trim Right: Trims the right side characters until the Max Length value is reached.
- Trim Left: Trims the left side characters until the Max Length value is reached.
- Rollover to 1: Resets the count value to 1 when the Start value has more characters than the Max Length value.
- Error and Do Not Print: Errors the print job when the Start value has more characters than the Max Length value.
- Select Reset Count or Update Count in the After Print property.
- Add the data source to a field. For more information, see Use a Data Source to Fill a Field.