Skip to main content

system.kanoa.asset.setAssetModeCode

Requires kanoaOPS license

Description

Updates the mode code for an asset/mode combo.

Syntax

setAssetModeCode(modeAssetLinkId, modeCode)

Parameters:
  • modeAssetLinkId (int): The ID of the modeAssetLink
  • modeCode (int): The new mode code

  • Returns:
  • # of records modified (int)
  • Code Examples

    # Example Usage:
    recordsModified, errorMsg = system.kanoa.asset.setAssetModeCode(123, 456)
    if recordsModified is not None:
    print(f"{recordsModified} records modified for modeAssetLink with ID 123.")
    else:
    print(f"Error: {errorMsg}")