Skip to main content

system.kanoa.quality.analysis.queryChkItemEventData

This function requires KanoaQDS module

Description

Pulls the check item event data and displays it in the chart in KanoaQDS.

Syntax

queryChkItemEventData(chkItemId, startDate, endDate, minRange, maxRange)
  • Parameters
      chkItemId - ID of the check item (int).
      startDate - Start date for the query (datetime).
      endDate - End date for the query (datetime).
      minRange - Minimum range value (int).
      maxRange - Maximum range value (int).
  • Returns
      data - A dataset containing check item event data (pyDataset).
  • Code Example

    # Usage example
    chk_item_id = 123
    start_date = system.date.getDate(2023, 1, 1)
    end_date = system.date.getDate(2023, 12, 31)
    min_range = 10
    max_range = 100
    data = system.kanoa.quality.analysis.queryChkItemEventData(chkItemId=chk_item_id, startDate=start_date, endDate=end_date, minRange=min_range, maxRange=max_range)

    print(data)