Note:
If you customize the enterprise item number format using either the
parameterization console or using a business rule, enterprise item numbers will be 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: Let thisObject(VPMReference) Let UniqueKey="" Let ObjectCustoType="" Let ExternalID="" Let EnterpriseItemNumber="" /* get counter */ ObjectCustoType = Parameters->GetAttributeString("CustoType") UniqueKey = GetUniqueKey( 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 |