system.mes.analysis.getFilterValues

Sepasoft MES Module Suite

Description

Return values that a filter item can be set to when executing analysis. For filter items such as a date, no filter values will be returned.

Syntax

system.mes.analysis.getFilterValues(filterName, beginDate, endDate)


  • Parameters

String filterName - The name of the filter item to return values for.

Date beginDate - The starting date to limit the values to.

Date endDate - The ending date to limit the values to.

  • Returns

List<String> - Returns a list of strings. Each string is a possible value that the filter can be set to.

  • Scope

All

Code Examples

Code Snippet

Code
##Print the Filter Values when filtering by Work Order
end = system.date.now()
start = system.date.addDays(end, -2)
result = system.mes.analysis.getFilterValues('Work Order', start, end)        
print resultĀ 

Output

Code
[WO 1 - PC_0001, WO 2 - PC-002, TestWO, TestWO2]

Sepasoft MES Module Suite