Skip to main content

system.kanoa.quality.config.deleteGroup(chkItemGroupId, chkShtId, userId)

Deletes a chkItem group. FK constraints will prevent the deletion of a check item group that is being used by a check item. The remaining groups will be reordered after deleting an entry


Parameters

chkItemGroupId Integer: Id of the check item group to delete
chkShtId Integer: Id of the check sheet
userId Integer


Returns

success Boolean
message string" # of records deleted or error message if success is false


Example

chkItemGroupId = 1
chkShtId = 2
userId = 5
success, message = system.kanoa.quality.config.deleteGroup(chkItemGroupId, chkShtId, userId)