Skip to main content

system.kanoa.quality.config.updateDataType

This function requires KanoaQDS module

Description

Updates a data type in KanoaQDS.

Syntax

updateDataType(dataTypeInfo, userId)
  • Parameters
      dict dataTypeInfo - Dictionary, e.g., {'dataTypeName': 1,'enabled': 2,'isNumeric':3,'pickListEnabled':True}
      int userId - User ID
  • Returns
      int dataTypeId - ID of the updated data type.
  • Code Examples

    # Usage example
    data_type_info = {'dataTypeId': 1, 'dataTypeName': 'Special Bool', 'enabled': True,'isNumeric': True,'pickListEnabled':True}
    user_id = 123
    updated_data_type_id = system.kanoa.quality.config.updateDataType(dataTypeInfo=data_type_info, userId=user_id)

    if updated_data_type_id:
    print(f"Successfully updated data type. ID: {updated_data_type_id}")
    else:
    print("Update failed.")