PC SOFT
DEPOT EN LIGNE
POUR WINDEVWEBDEV ET WINDEV MOBILE

Master Detail Example 01 - Trabalhando em uma tela com tabelas Pai, filho neto em 3 browser diferentes sem usar rad escrevendo t
Publié par Boller
dans la catégorie Productivité
Nouveautés



Description
Master Detail Example 01 - Trabalhando em uma tela com tabelas Pai, filho neto em 3 browser diferentes sem usar rad escrevendo todo o código a mão

Esse exemplo funciona nos 3 produtos WINDEV, WEBDEV e WINDEV Mobile

VIDEO

https://youtu.be/JlqB74t6nTA
Illustrations, copies d'écran
none
none
Avis des utilisateurs
(Pour noter la ressource, cliquez sur Ecrire un avis)
Boller
// in global
HOnError("*",hErrAll,GerenciarMsgErros)

//----------------------------------------------------------------------------------------------------------

?When Exception in
Hdelete(Tabela,hRecNumCurrent,hCheckIntegrity)
Do
ProcedureControlErrors()
end

//----------------------------------------------------------------------------------------------------------


PROCÉDURE GerenciarMsgErros()

SWITCH HError(hErrCurrent)
CASE 70100 // Lock Error
Error("Registro bloqueado por outro usuario","aguarde desbloqueio")
RESULT opEndProcess
CASE 70015 // Integrity Error
Error("Erro de integridade: "+HErrorInfo(hErrFile)+"."+HErrorInfo(hErrItem))
Open(WIN_Integridade)
RESULT opEndProcess
CASE 70010 // Duplicate Error
Error("Duplicidade: "+HErrorInfo(hErrFile)+"."+HErrorInfo(hErrItem),...
"Valor do item: "+{HErrorInfo(hErrFile)+"."+HErrorInfo(hErrItem),indItem})
Open(WIN_Duplicidade)
RESULT opEndProcess
CASE 70022 // Password Error
Error("Erro senha do BD: "+HErrorInfo(hErrFile))
RESULT opEndProcess
CASE 70700 // Modification Conflict
Error("Existe atualização recente neste registro, registro não poderá ser atualizado "+H.FileName)
RESULT opEndProcess
CASE 70710 // Mandatory Value
Error("Campo não preenchido: "+HErrorInfo())
RESULT opEndProcess
CASE 70720 // Maintenance Error
Error("Manutenção do BD em progresso","tente depois!")
RESULT opEndProcess
OTHER CASE
Error("Erro durante o procedimento: "+HErrorInfo())
RESULT opEndProcess
END
Boller
Ajustei feitos com HonError e Exception para interceptar as mensagens de erro do banco e poder tratar elas.
Boller
VIDEO EXPLICATIVO

https://youtu.be/JlqB74t6nTA
A PROPOS
EVALUATION :
00Aucune évaluation
TELECHARGEMENTS :
344
MISE À JOUR :
06 décembre 2018
VERSION :
23
CONCERNE :
WINDEV, WEBDEV, WINDEV Mobile
Version minimale : 23
TAILLE :
14,7 Mo