system.mes.getLotList

Sepasoft MES Module Suite

system.mes.getLotList(mesLotFilter)

Get list of material lots based on the settings in the mesLotFilter parameter.  Default maximum return is 100 lots.

Syntax

system.mes.getLotList(mesLotFilter)

Parameters

MESLotFilter mesLotFilter - The MES object with filter criteria to specify the material lots to return.

Returns

A list of links representing the matching material lots. The list is returned as a MESList object that is a collection holding MESObjectLinks for each MESMaterialLot object.

Scope

All

Code Example

Python
#The following snippet prints the list of links.
from java.util import Calendar
 
filter = system.mes.lot.filter.createFilter()
filter.setModeName('LOT')
filter.setIncludeInactiveLots(True)
beginCal = Calendar.getInstance()
beginCal.add(Calendar.DAY_OF_MONTH, -30)
filter.setBeginDateTime(beginCal)
endCal = Calendar.getInstance()
filter.setEndDateTime(endCal)
results = system.mes.getLotList(filter)
for link in results:
    print link.getName()

Output

Code
Lot 1111
Lot 1234



Sepasoft MES Module Suite