Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Adding records to a view based grid
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement