Skip to main content
Version: V2 (Ignition 8.1)

tamaki.mes.utils.forceRefreshSessionCustomVariables

Description

Resets the project's sidebar-selection custom session variables to empty dictionaries. Specifically it clears locationSideBarSelection, materialSideBarSelection, uomSideBarSelection, widgetSideBarSelection, departmentsSideBarSelection, and downtimeSideBarSelection on session.custom. Use this to clear stale tree/sidebar selections held in session state.

Syntax

tamaki.mes.utils.forceRefreshSessionCustomVariables(session)

Parameters

ParameterTypeNullableDescription
sessionObjectFalseThe Perspective session object (self.session).

Returns

This method does not return a value. It clears the custom session variables as a side effect.

Code Examples

tamaki.mes.utils.forceRefreshSessionCustomVariables(self.session)