Product Documentation
Virtuoso ADE Verifier SKILL Reference
Product Version IC23.1, November 2023

verifCreateRandomId

verifCreateRandomId(
[ ?idLength x_idLength ]
[ ?prefix t_prefix ]
[ ?suffix t_suffix ]
)
=> t_id

Description

Creates a string of random characters that can be used as a unique requirement ID.

Arguments

?idLength x_idLength

The length of the generated portion of the ID. This does not include the given prefix or the suffix. Default is 5.

?prefix t_prefix

The prefix of generated IDs.

?suffix t_suffix

The suffix of generated IDs.

Value Returned

t_id

Generated random ID.

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

verifSetReqCellviewHolder

verifSetReqId

verifSetReqProp

verifSetReqTitle

verifSetReqType


Return to top
 ⠀
X