system.mes.purgeRequestAndResponseObjects

Sepasoft MES Module Suite

system.mes.purgeRequestAndResponseObjects(cutoffDate)

Permanently removes from the database Request and Response Objects that are both older than the date passed in and have had all Material Lots used.

Syntax

system.mes.purgeRequestAndResponseObjects(cutoffDate)

  • Parameters

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

  • Returns

Nothing

  • Scope

All

Python
#Remove Request and Response Objects older than the date input on a Popup Calendar component
removeDate = event.source.parent.getComponent('Popup Calendar').date
system.mes.purgeRequestAndResponseObjects(removeDate)

Sepasoft MES Module Suite