Sepasoft MES Module Suite
system.mes.workorder.getOperationsResponsesForWorkOrderName(workOrderName, beginDate, endDate)
This function returns all Operations Responses that were run with a given Work Order as a reference, during a given timeframe. This will typically be slower than getOperationsResponsesForWorkOrderUUID().
A typical use-case would be to access run-time data that actually fulfilled a Work Order requirement through script. This could enable reading information or editing information after the fact.
|
|
Syntax
system.mes.workorder.getOperationsResponsesForWorkOrderName(workOrderName, beginDate, endDate)
- Parameters
String workOrderName - The Name of the Work Order to return the associated Operations Response for.
Date beginDate - Date (inclusive) when the Operations Request for this Work Order was executed. Pass in 'None' to use the default date [1 Jan, 1970 00:00:00].
Date endDate - Date (inclusive) when the Operations Request for this Work Order finished executing. Pass in 'None' to use the default date [1 Jan, 2200 00:00:00].
- Returns
MESList<MESObjectLink> opsRspLinks - A list of MESObjectLinks that each have a reference to an MESOperationsResponse object.
- Scope
All
Python |
#This code will print the Operations Responses associated with a Work Order opsRspLinks = system.mes.workorder.getOperationsResponsesForWorkOrderName('My Work Order', None, None) for operationsResponseLink in opsRspLinks: print(operationsResponseLink.getMESObject()) |
Output
Python |
OperationsResponse (fc00c9c3-d5a4-4e62-be2d-f4eb8eae520d, mtrl-Nuts Unlimited:MES-1767:Area-1767:Line-1767, 0 parents, 0 children, 0 custom properties, 1 complex properties) |
Sepasoft MES Module Suite