Skip to main content

system.kanoa.lot.updateLotOperationEvent

Description

Adds a new lot event.

Syntax

updateLotOperationEvent(lotOperationEventInfo, userId)

Parameters:
  • lotOperationEventInfo (dict)
  • userId (int)

  • Returns:
  • retVal (int): # of records modified
  • msg (string): None if successful
  • Dictionary

    ParameterTypeRequiredNotes
    lotOperationEventIdint
    lotOperationIdint
    assetIdint
    tStampdatetime
    enabledbool

    Code Examples

    # Example usage
    >lotOperationEventInfo = {'lotOperationEventId;: 6, 'lotOperationId': 1, 'assetId': 18, tStamp': system.date.now(), enabled': True}
    >userId = 5
    >retVal, msg = system.kanoa.lot.updateLotOperationEvent(lotOperationEventInfo, userId)
    >print(retVal)