General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only