Using a Counter Name in an Initialization Rule
Before performing this task, ensure that the counter name that you want to use exists. |
1. | Within the Configuration Console, choose Business Objects. |
2. | Open the business object to use. |
3. | Choose the Business Rules tab. The list of business rules appears. |
4. | Within the Initialization Rules section, click Add Initialization Rule. The Add Initialization Rule window appears. |
5. | Enter information into the fields. |
--fields--
Field | Description |
---|---|
Disabled | If the rule is disabled. Ensure that this option is not checked. |
Field Name | The field in which this initialization rule applies. |
Field Value |
Enter the expression: $(GetNextCounter(counterName))
For example, if the field name is a business object ID field, then the counter that is referenced in the expression will use the incremental value defined in the counter record to populate the ID field for the next record in that business object. |
6. | Click Save. |
7. | Click Save. |