system.mes.purgeVerticalTableData

Sepasoft MES Module Suite

system.mes.purgeVerticalTableData(cutoffDate)

Permanently removes vertical table data from the database older than the date passed in.

Version Specific

Warning

From version 3.81.8 SP4 and later:

Vertical-table data for inactive counters and inactive equipment is included.

Syntax

system.mes.purgeVerticalTableData(cutoffDate)

  • Parameters

Date cutoffDate - Records older than this date will be removed.

  • Returns

Nothing

  • Scope

All

Python
#Remove vertical table data older than the date input on a Popup Calendar component
removeDate = event.source.parent.getComponent('Popup Calendar').date
system.mes.purgeVerticalTableData(removeDate)

Sepasoft MES Module Suite