system.kanoa.quality.config.getChkItemDataSource(chkItemId)
Returns the tag a check item reads its value from without an attribute. No rows when it has none; a check linked to an attribute reads that attribute's data source instead.
Parameters
chkItemId Integer: Id of the check item
Returns
chkItemDataSourceId, chkItemId, sourceTagPath, scaleFactor, ignoreZeroValues, enabled, createdBy, createdDate, changedBy, changedDate (pyDataset)
Example
chkItemId = 47
source = system.kanoa.utilities.convertDatasetRowToJSON(system.kanoa.quality.config.getChkItemDataSource(chkItemId), 0)
if source['sourceTagPath']:
print('Check %s reads %s' % (chkItemId, source['sourceTagPath']))