Skip to main content

system.kanoa.asset.enableMode

This function requires KanoaOPS module

Description

Change the enabled mode of a mode (kanoaOPS).

Syntax

enableMode(modeId, enabled)
  • Parameters
      modeId (int) - ID of the mode.
      enabled (bool) - Boolean indicating whether the mode should be enabled or disabled.
  • Returns
      # of records modified (int).
  • Code Examples

    # Example Usage:
    mode_id = 123
    enabled = True
    records_modified = system.kanoa.asset.enableMode(mode_id, enabled)