Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Should code for checks be on form or in store procedures
Message
From
27/10/2005 19:39:49
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01062538
Message ID:
01062827
Views:
9
>I would like to know what is the best practice to check that data on an entry form is correct and what are the advantages and disadvantages of each?
>
>I have seen this type of checking in one of 3 places:
>
>1) At the point where the data is captured (for example in the valid event of say a text box.
>
>2) A number of check are done in a method on the form. This method is called before the tableupdate is issued.
>
>3) Checks are written into a stored procedure. This procedure is then called each time before the referential integrity is run for a trigger in the table.
>
>
>Thanks in advance!

Hey Stuart,

I've always prefered Business Rules on a Business Object.

That way even if the backend changes, though that doen't happen often, the rules will still be checked.

Aloha,

James
Previous
Reply
Map
View

Click here to load this message in the networking platform