Skip to end of metadata
Go to start of metadata

Adds a new product code to the system.

This function requires an additional argument on the Gateway script which is the name of the project.

For MES version 2.0:

This function is only used for SPC and Recipe modules. 

This function is not used for Track and Trace and OEE Downtime modules.


system.production.addProductCode(projectName, productCode, description)

  • Parameters

String projectName - A valid project name.

String productCode - The product code.

String description - A description of this product code.

  • Returns

String result - Error message if the product code could not be added, blank if successful.

  • Scope


Code Examples
Code Snippet