Skip to main content

system.kanoa.quality.config.addDataType(dataTypeInfo, userId)

Adds a new check item data type. All dataTypeInfo keys are required.


Parameters

dataTypeInfo Dictionary

- dataTypeNameString
- enabledBoolean
- isNumericBoolean
- pickListEnabledBoolean

userId Integer: Id of user executing the function


Returns

dataTypeId Integer


Example

dataTypeInfo = {'dataTypeName': 'Special Bool', 'enabled': True,'isNumeric': True,'pickListEnabled':True}
userId = 5
dataTypeId = system.kanoa.quality.config.addDataType(dataTypeInfo, userId)