Skip to main content

system.kanoa.quality.event.saveChkItemEvent

This function requires KanoaQDS module

Description

Saves a check item event's value in KanoaQDS.

Syntax

saveChkItemEvent(chkItemEventInfo, userId)
  • Parameters
      chkItemEventInfo - Dictionary containing information about the check item event (dictionary).
      userId - ID of the user saving the check item event (int).
  • Returns
      # of records modified - Number of records modified (int).
  • Code Example

    # Usage example
    chk_item_event_info = {'chkItemEventId': 1, 'chkShtEventId': 3, 'chkItemId': 1, 'measNumber': 1, 'chkItemValue': 'sausages', 'chkItemStateId': 2}
    user_id = 123
    records_modified = system.kanoa.quality.event.saveChkItemEvent(chkItemEventInfo=chk_item_event_info, userId=user_id)

    print(records_modified)