Using Counters
You can manage counters for existing business objects and set up counters for new business objects.
Counters are usually used in association with the field of a business object, usually in an initialization business rule to set the initial value and then get the next specified incremental value, using the $(GetNextCounter(counterName)) function. See Using a Counter Name in an Initialization Rule and GetNextCounter.
1. | Within the Configuration Console Main Menu, choose Business Objects. The Common Business Objects page appears. |
2. | From the right pane, choose View Counters. The list of existing business objects with counter values appears with the following information: |
Option | Description |
---|---|
Name |
Name of the counter |
Initial Value |
The first integer value for the counter. This could also be a negative number. Counter length is limited to 9 digits. |
Increment |
The incremental counter value for the next record. |
Current Value |
The current value for the most recent record. |
Last Modified |
The time and date that this counter was modified. |
Modified by |
The login name of the user who last modified the record. |
3. | Click the name of the counter to view the record and modify any values. |
When resetting the counter or modifying counters for existing records, try not to create duplicate records. To prevent duplication, you can reset the counter to a value that is currently higher than the number shown in the Current Value field. |
1. | From the Counter page, click a counter from the list. The counter details page appears. |
2. | To set the counter number to 0, click Reset counter to start the counter at the new base value, and accept the confirmation message. |
3. | Click Save. |
1. | From the Counters page, click Add New. A blank counter form appears. |
2. | Enter information into the fields. |
Field | Description |
---|---|
Name |
Name of the counter. This is the name that will be used in the initialization business rule for the business object to get the next counter value. |
Base Value |
The first or initial integer value for the counter. This could also be a negative number. Counter length is limited to 9 digits. |
Increment |
The incremental counter value for the next record. |
3. | Click Save. |