verifCreateRandomId
verifCreateRandomId( [ ?idLengthx_idLength] [ ?prefixt_prefix] [ ?suffixt_suffix] ) =>t_id
Description
Creates a string of random characters that can be used as a unique requirement ID.
Arguments
|
The length of the generated portion of the ID. This does not include the given prefix or the suffix. Default is 5. |
|
Value Returned
Examples
In your .cdsinit file, specify the following:
envSetVal("verifier.requirement" "idCreationFunction" 'string "verifCreateRandomId")
Newly created requirements will have an ID of five random characters, such as NUX8L or pWnT8.
Opens a Verifier cellview and creates a random ID for a new requirement.
verifCreateRandomId()
=> "pWnT8"
Opens a Verifier cellview and creates a random ID for a new requirement with the prefix "id" and a suffix "_x".
verifCreateRandomId(?prefix "id_" ?suffix "_x")
=> "id_hhVGj_x"
Related Topics
Return to top