sábado, 5 de junio de 2021

on error

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





No hay comentarios.:

Publicar un comentario

Valida RFC

 // Summary: <specify the procedure action> // Syntax: //[ <Result> = ] GP_ValidaRFC (<nTipoPersona>, <sParamRFC>) /...