verifMoveReq
verifMoveReq(
g_sessionId
g_reqId
[ ?parentId g_parentId ]
[ ?pos x_pos ]
)
=> t / nil
Description
Changes the position of a requirement in the specified Verifier session.
Arguments
|
g_sessionId
|
Integer, string number, or window specifying the Verifier session ID. For example, 0, "0", or window(2).
|
|
g_reqId
|
ID of the requirement to be moved.
|
|
?parentId g_parentId
|
|
|
ID of the new parent requirement.
Accepts one of the following values:
-
nil: Parent does not change (default) -
"": Moves the requirement to the top level -
ID of a requirement with type
Note - The specified requirement is moved to be a child of this Note requirement.
|
|
?pos x_pos
|
The new position of the specified requirement.
A value of 0 places the requirement at the beginning of the hierarchy, 1 places it after the first item, 2 places it after the second item, and so on. A negative number, or a number higher than the number of items of the hierarchy, places the requirement at the end of the hierarchy. The default is -1.
|
Value Returned
|
t
|
The requirement was moved to the required position.
|
|
nil
|
The requirement was not moved.
|
Examples
Open Verifier cellview and move requirement with ID ID1.1 to be the first child of requirement ID1.
sessionID = verifOpenCellView("test" "setup" "verifier")
=> 0
verifMoveReq(sessionId "ID1.1" ?parentId "ID1" ?x_pos 0)
=> t
Related Topics
verifAddReq
verifRemoveReq
Return to top