system.mes.analysis.getGroupByOptions

Sepasoft MES Module Suite

Description

Return group-by options that can be used when executing analysis.

Syntax

system.mes.analysis.getGroupByOptions(groupFilter, itemFilter)


  • Parameters

String groupFilter - A filter to limit the group-by options returned to one or more groups. Multiple groups can be specified by separating them with commas.

String itemFilter - A filter to limit the group-by options returned to one or more items. Multiple group-by items can be specified by separating them with commas.

  • Returns

List<AbstractValueItemInfo> - Returns a map (a key-value pair) containing the filter group path as the key and a list of AbstractValueItemInfo objects as the value. See AbstractValueItemInfo object documentation for details.

  • Scope

All

Code Examples

Code Snippet

Code
#Gets groupby options
options = system.mes.analysis.getGroupByOptions('*Downtime', 'Line *')
for item in options:
    for x in options[item]:
        print item, '::', x.getName() 

Output

Code
Equipment/Line/Downtime :: Line Downtime Occurrence Count
Equipment/Line/Downtime :: Line Downtime State Time Stamp
Equipment/Line/Downtime :: Line Downtime Equipment Name
Equipment/Line/Downtime :: Line Downtime Reason Split
Equipment/Line/Downtime :: Line Downtime Reason
Equipment/Line/Downtime :: Line Downtime Note
Equipment/Line/Downtime :: Line Downtime Equipment Path
Equipment/Line/Downtime :: Line Downtime Event Sequence
Equipment/Line/Downtime :: Line Downtime Reason Path

Sepasoft MES Module Suite