CopyRefObjReferences

You can use this function for Optiva Copy Methods.

Purpose

This function copies the reference object to the new object for the specified object type(s), and the reference must be configured for both the object types.

See the Infor PLM for Process Application Configuration Guide.

Syntax


long CopyRefObjReferences(params string[] @params)

Return Value

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

Arguments

Part Description
param1, param2 The list of object types. They are copied to the References tab of the new object from the reference object.

Example

This script is in a copy method for a specification created from the References tab of a formula (Object Type = SPECIFICATION, Reference Type = FORMULA, Events = Create From As New).

The PROJECT and CUSTOMER References are copied from the formula to the specification.

CopyRefObjReferences("PROJECT", "CUSTOMER");

This script is in a copy method for a specification that is created from the References tab of a formula (Object Type = SPECIFICATION, Reference Type = FORMULA, Events = Create From As New).

The script copies all the References from the formula to the specification.

CopyRefObjReferences();