Skip to main content

system.kanoa.quality.event.addChkItemEventComment

Requires kanoaQDS license

Description

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

Syntax

addChkItemEventComment(chkItemEventInfo, userId)

Parameters:
  • chkItemEventInfo (dictionary): Dictionary containing information about the check item event.
  • userId (int): ID of the user adding the comment.

  • Returns:
  • recordsModified (int): Number of records modified.
  • Code Examples

    # 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)