Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding records to a view based grid
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Adding records to a view based grid
Divers
Thread ID:
00222265
Message ID:
00222265
Vues:
46
Hi all!

I have a grid based on a parameterized view. I want to set the AllowAddNew property set to .T. and add records to the view. The view uses two keyfields to be unique, one is Keyfield, the other is subkey. The parameter for the view is based on ?lcKeyfield. These keys are filled programmably.

If a new record is added to the view keyfields are empty. If I try to fill the keyfields in a save method I get an update conflict.

How can I programmably fill the key fields in the view for new records added on the grid before my tableupdate() without getting an update conflict? I suspect this probably would be done best in the rules expression on the keyfields in the table. Is that right?

TIA!

Rob
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform