Detail Dataset readonly?

arbor

Member
Hi,

I am testing DOA, but have a problem.

As soon as I set the Master property of an updatable dataset, it becomes readonly. (runtime error: "Cannot modify a read-only dataset").

Both Datasets have Active = true
Both include a rowid in the sql query
Both have ReadOnly = false
Both have QBEMode = false
there is a foreign key relation, and the relation is created automatically.

Is there something else which is required.
As soon as I remove the master-detail relation, I can modify the dataset.

I am using BCB5 (with the trial version of DOA)

Regards,
Wim Hueskes
Arbor
 
This should only occur if there is no master record. You cannot insert records into a detail dataset if there is no master record.
 
That was correct. I was adding records to an empty table, but first inserted into the detail instead of the other way around.

Thanks!
 
Back
Top