Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Placing business rules in a table
Message
De
17/07/2001 20:50:35
 
 
À
17/07/2001 08:19:37
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:
00531066
Message ID:
00531813
Vues:
10
Hi Hilmar,

Thank you for your answer. Glad to see that somebody does. I am groping for an easy way to implement this middle tier thing, where the business rule is neither in the form nor the database.

Add "FieldName" field to "Validation", "FieldValid()" to the DBC, and code to the UI classes (maybe to triggers too?) that calls FieldValid(), which performs field level validation based on the code in Validation.Rule.

Do you think that this is consistent with a proper 3-tier model?

Thank you.

Alex


>>The question is: Does anybody here use a table to store validation procedures?
>
>Yes, I do.
>
>In my database container, I have function RecordValid(). This function is called from each form in my application.
>
>Table validation has the following fields:
>

>Table (C)
>Order (I)
>Rule (M) && Rule to be evaluated
>Spanish (M) && Error message in spanish
>Comments (M) && For the programmer
>Warning (L) && if .T., warning only. Record is still saved.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform