[DUG] RE Relationship or not

Marshland Engineering marshland at marshland.co.nz
Thu Jun 25 22:41:04 NZST 2015


Hi chaps and update. Barry, Eric and Alistair all came to the rescue and I
learned something from each one. Thanks very much. 

I'm using Devart for Mysql access. 

So what I have learned is, that, if you have a Master Detail relationship and
you do a post with the Master table, the Detail table changes from edit to
browse mode all by itself. !!!!

Along the same lines if you have a Master Detail relationship and look to see
if there is a Detail entry for a Master record and there isn't one, when you
put the master into edit mode, it automatically creates one for you (or a
virtual one) in the detail form so any conditional statement with the Detail
table now returns true. 

So with Devarts components- things happen behind the scenes which can be hard
to find.   

Thanks Wallace



More information about the Delphi mailing list