Views:

Product: LABELVIEW, CODESOFT
Version: LABELVIEW Gold, All CODESOFT Versions

Shared counters allow multiple print jobs or users to reference the same counter value. This is useful when labels require sequential numbering that must continue across multiple print sessions or be reset when a specific database field changes.

This article explains how to create a shared Advanced Counter data source and configure it to reset automatically based on a selected data source.


Create a Shared Advanced Counter

1. Create a new Advanced data source.

If the Data Source pane is open:
  • Select Advanced.
  • Right-click and choose Add.
If the Data Source pane is not open:
  • Select Data Source from the menu.
  • Point to Advanced.
  • Select Add.

     

2. Configure the Advanced data source.
  • Enter a descriptive name.
  • Specify the starting value (for example, 1).
  • Change the storage type from Local to Shared.

3. Configure the counter settings.
  • Select the Counter tab.
  • Enable the Counter checkbox.
  • Set the Minimum and Maximum values.
  • Enable Reset after data source value change.
  • Select the data source that should trigger the counter reset.
  • Click OK.

4. Place the shared counter on the label.

If the Data Source pane is open:
  • Select the Advanced counter.
  • Right-click the data source.
  • Select Place.
If the Data Source pane is not open:
  • Select Data Source from the menu.
  • Select Advanced.
  • Select the counter.
  • Choose Place.

     


Result

The shared Advanced Counter is now available for placement on your label. During printing, the counter increments according to the configured minimum and maximum values and automatically resets whenever the selected data source changes.