Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to detect if data has been changed?
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
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01109147
Message ID:
01109219
Vues:
29
>Hi Naomi,
>
>We took a more simplistic approach; we attach a dataObj to the biz obj. Upon instantiation of bizobj, the bizObj.dataObj is populated with initial data values. Our base class biz object has a method that compares current bizobj prop values to its attached dataObj prop values, thus detecting changes. Thus, we are not relying on either the presentation or the data layer to detect changes, which IMO, should be strictly a function of the biz layer.
>However, we are still in the development phase, though this seems to be working well so far.
>I too would like to hear more about other's approach/comments to this issue.
>
>Sorin
>

That also sounds like a good idea and I was thinking about it myself, but you, of course, realize that it limits you to one record change in a time. Otherwise the code will become hairy, like my colleague likes to say <g>

Also, I assume, your Save button is always enabled. In our implementation using MereMortals framework it is always enabled.

In my previous job we used different approach, but we didn't have multi-tier application.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform