system.mes.workorder.getOperationsRequestsForWorkOrderName

Sepasoft MES Module Suite

system.mes.workorder.getOperationsRequestsForWorkOrderName(workOrderName, beginDate, endDate)

Get a Work Order's Operations Requests between the given dates. This will typically be slower than getOperationsRequestsForWorkOrderUUID().

Syntax

system.mes.workorder.getOperationsRequestsForWorkOrderName(workOrderName, beginDate, endDate)

  • Parameters

String workOrderName - The name of the Work Order to return the associated Operations Requests 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> opsReqLinks - A list of MESObjectLinks that each have a reference to an MESOperationsRequest object.

  • Scope

All

Python
#This code will print the Operations Requests associated with a Work Order
opsReqLinks = system.mes.workorder.getOperationsRequestsForWorkOrderUUID('My Work Order', None, None)
for operationsRequestLink in opsReqLinks:
        print(operationsRequestLink.getMESObject())

Output

Code
OperationsRequest (032a0935-fa68-49e3-b1ab-c0dc5adff867, mtrl-Nuts Unlimited:MES-1767:Area-1767:Line-1767, 0 parents, 0 children, 0 custom properties, 2 complex properties)
OperationsRequest (f1fd900b-223b-4cf5-b759-6dcc03e2f86f, mtrl-Nuts Unlimited:MES-1767:Area-1767:Line-1767, 0 parents, 0 children, 0 custom properties, 2 complex properties)
OperationsRequest (b11027a8-8259-4fb5-8db6-760f42e022ec, mtrl-Nuts Unlimited:MES-1767:Area-1767:Line-1767, 0 parents, 0 children, 0 custom properties, 2 complex properties)



Sepasoft MES Module Suite