A developer is creating a custom table for tracking hardware assets. The table must have fields for asset tag, serial number, and purchase date. The developer wants to ensure that the asset tag is automatically generated using a prefix followed by an incrementing number. Which approach should the developer use?
Trap 1: Use a calculated value that dot-walks to a number table
Dot-walking is for referencing related record fields.
Trap 2: Set the default value of the asset tag field to 'AST-' + sys_id
Default values are static or scripted but cannot reliably increment.
Trap 3: Configure a dictionary override on the asset tag field to…
Dictionary overrides modify field attributes, not generate values.
- A
Use a calculated value that dot-walks to a number table
Why wrong: Dot-walking is for referencing related record fields.
- B
Set the default value of the asset tag field to 'AST-' + sys_id
Why wrong: Default values are static or scripted but cannot reliably increment.
- C
Create a business rule that calculates the asset tag using a script that increments a counter
A business rule can generate a unique, incrementing asset tag.
- D
Configure a dictionary override on the asset tag field to auto-generate
Why wrong: Dictionary overrides modify field attributes, not generate values.