Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shared Access & Updateable Views
Message
De
30/10/1999 17:51:54
 
 
À
30/10/1999 17:06:46
Jill Derickson
Software Specialties
Saipan, CNMI
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00284390
Message ID:
00284396
Vues:
22
>I've been investigating using GetFldState. Does this function pertain to views? It just hit me, though, that GetFldState will give me info about the VIEW and not the underlying data, right?

Yup. Works just like for a buffered table. GETFLDSTATE returns info pertaining to the status of the data in the view.


>Should I be using CurVal(), OldVal() to check the underlying table fields? but I thought that w/updateable views the idea was to only deal w/the view, not the underlying table data directly.

I don't think oyu can get CURVAL() and OLDVAL() to work like this. To be honest, without opening another copy of the table, I don't know how to check these values. Most of the systems I write, the client has asks that the most recent changes win, so I just force the TABLEUPDATE(). But in cases where the rules are not that simple, when an update conflict occurs, I just inform the user that someone else has made changes to the record, and ask if the changes should be overwritten. Has worked so far- and even in heavier traffic apps, this almost NEVER happens.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform