system.mes.getAvailableReferenceOptions

Sepasoft MES Module Suite

system.mes.getAvailableReferenceOptions(mesObject, propertyPath, MESObjectTypeName, nameFilter, onlyDefinitionTypes, maxLotReturnCount, lotNameFilter)

Get a list of the available options for the specified MES reference property specified in by the property parameter.

Syntax

system.mes.getAvailableReferenceOptions(mesObject, propertyPath, MESObjectTypeName, nameFilter, onlyDefinitionTypes, maxLotReturnCount, lotNameFilter)

  • Parameters

AbstractMESObject mesobject -The AbstractMESObject for which the available options.

String propertyPath - The name or property path of the property.

String MES Object Type Name - The type of MES object types to return. See MES Object Type Name for more details.

String nameFilter - A filter that limits the results to the specified type.

Boolean onlyDefinitionTypes - If True, returns only the definition types.

Integer maxLotReturnCount - The maximum number of lots.

String lotNameFilter - The lot name filter used to filter the results.

  • Returns

A list of MES Object Link objects holding the options that are appropriate for the specified property. The list is returned as a MES List object that is a collection holding MES object links that represent the options.

  • Scope

All

Code Examples

Python
seg = system.mes.createSegment('Mix Nuts', '[global]\Nuts Unlimited\Folsom\Mixing\Mixing Line 1', True)
  
#Get options for equipment that the lot can be retrieved from or stored
lotMaterialOptList = system.mes.getAvailableReferenceOptions(seg, 'Material.Material In.LotMaterialRef', 'MaterialDef', '', False, 100, '')
for ndx in range(lotMaterialOptList.size()):
    print lotMaterialOptList.get(ndx)

Output

Code
Bulk Almonds
Bulk Peanuts
Bulk Walnuts

Sepasoft MES Module Suite