system.kanoa.asset.setAssetModeCode
Description
Updates the mode code for an asset/mode combo (kanoaOPS).Syntax
setAssetModeCode(modeAssetLinkId, modeCode)- modeAssetLinkId (int) - The ID of the modeAssetLink
- modeCode (int) - The new mode code
- # of records modified (int)
Code Examples
# Example Usage:
records_modified, error_msg = system.kanoa.asset.setAssetModeCode(123, 456)
if records_modified is not None:
print(f"{records_modified} records modified for modeAssetLink with ID 123.")
else:
print(f"Error: {error_msg}")