Skip to main content

system.kanoa.quality.event.addCheckEvent

This function requires KanoaQDS module

Description

Adds a new check sheet event in KanoaQDS.

Syntax

addCheckEvent(chkEventInfo, userId)
  • Parameters
      chkEventInfo - Dictionary containing information about the check sheet event (dictionary).
      userId - ID of the user adding the check sheet event (int).
  • Returns
      chkShtEventId - ID of the newly added check sheet event (int).
  • Code Example

    # Usage example
    chk_event_info = {'chkShtId': 1, 'assetId': 18, 'shiftNameId': 1, 'itemId': 5, 'chkShtTriggerId': 3, 'chkShtStateId': 8, 'comment': None, 'scheduledDate': somedate}
    user_id = 123
    chk_sht_event_id = system.kanoa.quality.event.addCheckEvent(chkEventInfo=chk_event_info, userId=user_id)

    print(chk_sht_event_id)