Skip to main content

system.kanoa.quality.event.addChkItemEventComment

This function requires KanoaQDS module

Description

Adds a comment to a check item event or updates it if chkItemEventId is passed in the chkItemEventInfo in KanoaQDS.

Syntax

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

    # Usage example
    chk_item_event_info = {'chkItemEventId': 1, 'comment': 'some comment', 'chkItemId': 1, 'itemId': 5, 'measNumber': 1}
    user_id = 123
    records_modified = system.kanoa.quality.event.addChkItemEventComment(chkItemEventInfo=chk_item_event_info, userId=user_id)

    print(records_modified)