Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Backend fails an update, can I handle this better
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Firebird
Application:
Desktop
Divers
Thread ID:
01376701
Message ID:
01376987
Vues:
25
Why don't you validate data on front end to avoid the error?
Why do you refresh the form instead of handling the error?

>
>I have defined some constraints on the FireBird backend database. On violation the form looses all the data and goes into a blank state as the remote view is probably blanked. I am using CodeBook as the framework. The following is the message that I get for a Unique Key violation
>
>violation of PRIMARY or UNIQUE KEY constraint "UNQ_MLOOKUPS_CATEGORY" on table "MLOOKUPS"
>
>Can I handle this more gracefully?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform