Skip to end of metadata
Go to start of metadata
Description

Save a work order. This is necessary after creating the work order itself, or changing one of it's properties.

Syntax

system.mes.workorder.saveMESWorkOrder(workOrder)


  • Parameters

 MESWorkOrder workOrder -  The work order to be saved.

  • Returns

Nothing

  • Scope

All

Code Examples
Code Snippet
##Get a work order, set the quantity, and save the work order to manifest the change.
woObj = system.mes.workorder.getMESWorkOrder('0752665525')
woObj.setWorkOrderQuantity(float(6754))
system.mes.workorder.saveMESWorkOrder(woObj)
print woObj
Output
WorkOrder (a289e509-656b-4914-a597-386e7cf7376b, 0752665525, 0 parents, 0 children, 0 custom properties, 0 complex properties) 
  • No labels