Sepasoft MES Module Suite
createFilter Script Function
The createFilter script function creates and returns a MESChangelogFilter object. Use this object to define search constraints before calling any system.mes.changelog query function. By default the filter is configured with an inclusive date/version range, descending sort order, and no record limit.
Syntax
system.mes.changelog.createFilter()
Parameters
This function takes no parameters.
Return Value
Type | Description |
|---|---|
MESChangelogFilter | A new filter object with default settings: inclusive range, descending sort, no record limit. |
Scope
Context | Availability |
|---|---|
Client | Available in Vision Client and Designer scripts |
Gateway | Available in Gateway-scoped scripts |
Example Usage
Python |
# Minimal — create a filter and pass it directly to a query function changelogFilter = system.mes.changelog.createFilter() events = system.mes.changelog.getChangeEvents(filter=changelogFilter) # Realistic workflow — configure the filter before querying changelogFilter = system.mes.changelog.createFilter() changelogFilter.setLimit(100) changelogFilter.setDescending(True) changelogFilter.setMESObjectTypeNames("Equipment") events = system.mes.changelog.getChangeEvents(filter=changelogFilter) |
Related Functions:
getChangelogData() — Returns an Ignition Dataset of changelog records using this filter.
Sepasoft MES Module Suite