Note:
If you customize the EIN format using either the Collaborative Spaces Configuration
Center or using a business rule, enterprise item numbers are
ignored in data that you import in the future using a spreadsheet.
When you create a business rule, the server Business Logic PLMComputePartNumber generates a new enterprise item number for each product that the user selects. A panel lists the generated enterprise item numbers and the user can either accept or refuse to use them. The user cannot edit the list. If there is no business rule, the panel contains a field that enables the user to enter an enterprise item number using any format they choose. Here is an example business rule: /* ThisObject : VPMReference */
Let UniqueKey=""
Let ObjectCustoType=""
Let ExternalID=""
Let EnterpriseItemNumber=""
/* get counter */
ObjectCustoType = ThisObject.PrimaryType.Name
UniqueKey = GetUniqueKeyFromString( ObjectCustoType )
/* get PLMExternal_ID */
ExternalID= ThisObject->GetAttributeString("PLM_ExternalID")
/* generate Enterprise Item Number with schema */
EnterpriseItemNumber = "PN-" + ExternalID + "-" + UniqueKey
/* set value in parameters*/
Parameters->SetAttributeString("PartNumber", EnterpriseItemNumber)
Where In this example, the Type of the object is used as the input
string in | |||||||||