RemoveReferences

You can use this function for Optiva Workflows and Copy Methods.

Purpose

The function RemoveReferences removes some or all references from the References tab of an object.

Syntax


RemoveReferences(string objSymbol, string objectKey, string type = null, string code = null)

Return Value

If the code is successful, a value greater than zero (0) is displayed.

Arguments

Part Description
objSymbol The object type or current object type of the data.
Note: The object type or current object type of the data.
objkey The object key or current object key of the data.
Note: The object type or current object type of the data.
Type Optional - Reference Type. If argument is empty, all references are removed.
Code Optional.
  • Reference Code.
  • Providing a reference code removes the corresponding object code (from References tab) of the specified type.
  • If the argument is empty, all the references of the specified type are removed.

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")
Example 1: RemoveReferences("", "", "VENDOR");

All of the VENDOR references are removed from the current object upon which the workflow is launched.

Example 2: RemoveReferences("", "", "SPECIFICATION");

All the specification references are removed from the current object upon which the workflow is launched.

Example 3: RemoveReferences("FORMULA", "PIZZA_SAUCE\0001");

All the references from PIZZA_SAUCE\0001 formula are removed.

Example 4: chepand RemoveReferences("FORMULA", "PIZZA_SAUCE\0001", "LABELCONTENT", "LC0001\0001");

The Label Content reference LC0001\0001 is removed from PIZZA_SAUCE\0001 formula.