Skip to main content

system.kanoa.lot.enableAssetLotStateLink

This function is part of the kanoaOPS module

Description

Updates the enabled state of a lot state reason asset link.

Syntax

enableAssetLotStateLink(lotStateReasonAssetLinkId, enabled)
  • Parameters
      int lotStateReasonAssetLinkId - Lot state reason asset link ID
      boolean enabled - New enabled state
  • Returns
      int - Number of records modified
  • Code Examples

    # Example usage
    lotStateReasonAssetLinkId = 1
    enabled = True
    recordsModified = system.kanoa.lot.enableAssetLotStateLink(lotStateReasonAssetLinkId, enabled)
    print(recordsModified) # Print the number of records modified