Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get DBC to fire field rule manually
Message
De
05/06/2003 22:27:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00796071
Message ID:
00797020
Vues:
16
>Hi all
>
>Is it possible to tell the DBC to fire the field level rules?
>
>I have field rules/messages defined, but I want to control when to fire it, so I can send a validated data set for commit.

Perhaps you will benefit from a table-based validation: rules are defined in a table, a special function searches through all rules for the table.

Field-level and record-level rules have the bad habit to fire too early.

With table-based validation, you could check the rules before doing your TableUpdate(). As an additional security, you could call your validation function from the Insert and Update triggers.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform