CopyRefObjSetCodes
You can use this function for Optiva Copy Methods.
Purpose
This function adds the new object to set codes of the reference object, if a set code exist for the new object type.
See the Infor PLM for Process Application Configuration Guide.
Syntax
long CopyRefObjSetCodes()
Return Value
If the code is successful, a value greater than zero (0) is displayed.
Arguments
None
Example
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). It adds the specification to set codes to which the formula belongs that are the same for specifications.
Dim lSets As Long = CopyRefObjSetCodes()
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). It copies all the Setcodes from the formula to the specification.
CopyRefObjSetCodes();