Subject | Master-Detail - which event is save to walk through Detail after master change? |
---|---|
Author | G.Nau |
Post date | 2010-04-29T21:42:44Z |
IBO 4.8.5 on D7, FB 2.1
I'm using a simple master-detail TIBQuery combination, which is working
fine; each is shown in a TIB_Grid on a standard form..
Now I have to walk through all detail records to collect and show some
information found in the detail record set ("analyse").
At the moment I'm triggering the analyse procedure on the
master-datasource.ondatachange event.
But that's not working as expected.
On changing the master the ondatachange event is firing. As analyse is
starting, it sometimes fetches some detail-data from the old
masterrecord then mixing up with detail data from the new master record.
So my analyse step is starting too early and has to wait until the
detail record set is ready for ".first - .next until .eof".
Any hint where I might look at or which event is saver to use?
Regards, Gunther
I'm using a simple master-detail TIBQuery combination, which is working
fine; each is shown in a TIB_Grid on a standard form..
Now I have to walk through all detail records to collect and show some
information found in the detail record set ("analyse").
At the moment I'm triggering the analyse procedure on the
master-datasource.ondatachange event.
But that's not working as expected.
On changing the master the ondatachange event is firing. As analyse is
starting, it sometimes fetches some detail-data from the old
masterrecord then mixing up with detail data from the new master record.
So my analyse step is starting too early and has to wait until the
detail record set is ready for ".first - .next until .eof".
Any hint where I might look at or which event is saver to use?
Regards, Gunther