En inicialización del projecto
HOnError("*",hErrDuplicates,GP_OnError_Duplicado)
HOnError("*",hErrIntegrity ,GP_OnError_Integridad)
//********************************************
En los procedimientos globales
PROCEDURE GP_OnError_Duplicado()
sItemName is string = HErrorInfo(hErrItem)
Info("Problema campo duplicado",sItemName)
// ToastDisplay("Ese registro ya existe")
RESULT opEndProcess
PROCEDURE GP_OnError_Integridad()
sItemName is string = HErrorInfo(hErrItem)
Info("Problema integridad de registro",sItemName)
// ToastDisplay("Ese registro ya existe")
RESULT opEndProcess