RemoveReferences
You can use this function for Optiva Workflows and Copy Methods.
Purpose
Removes references from an object.
Syntax
Dim variable as Long = RemoveReferences(Symbol,ObjectKey[,ObjectType, ObjectCode])
Arguments
Part | Description |
---|---|
Symbol |
Type of object. Use empty quotation marks to indicate the symbol of the object for the workflow, or the new object for the copy method. |
Object Key |
Object whose references are to be removed. Use empty quotation marks to indicate the object for the workflow, or the new object for the copy method. |
Object Type |
Optional. Remove all references of a single object type, for example VENDOR . |
Object Code |
Optional. Remove only a single reference that matches the type and code. |
Description
RemoveReferences
removes some or all references from the References tab of an object.
Examples
In this example, all of the references from the References tab of the PIZZA_SAUCE\003
formula are removed.
Dim lRemove As Long
RemoveReferences("FORMULA","PIZZA_SAUCE\003")
In the next example, all of the references are removed from the References tab of the workflow object or newly created object.
Dim lRemove As Long = RemoveReferences("","")
In this example, all of the VENDOR
references are removed.
Dim lRemove As Long = RemoveReferences("","","VENDOR")
Only the specification reference SP-0001\0001
is removed.
Dim lRemove As Long = RemoveReferences("","","SPECIFICATION","SP-0001\0001")