You need to set up a fast formula to generate unique reference from the database
sequence.
-
Create a new fast formula.
-
Enter the fields as shown below:
| Field | Value |
|---|
| Legislative Data Group |
Select the required LDG |
| Formula Name |
Get Unique Reference Code from DB Sequence |
| Type |
Element Input Validation |
| Effective As-of Date |
Enter the relevant date |
-
The formula text should be as described here:
FORMULA NAME: Get Unique Reference Code from DB Sequence
FORMULA TYPE: Element Input Validation
DESCRIPTION : A formula that returns the next value of the reference code. The reference
code is generated using a database sequence
***********************************************************************/
inputs are Unique_Reference(text)
l_rc = GET_REF_CODE_FROM_DB_SEQ()
Unique_Reference = to_char(l_rc)
return Unique_Reference