Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread BeforePost event not triggering - Master / Detail Relationship
Mon, Apr 22 2013 1:47 AMPermanent Link

Adam H.

Hi,

I've found something interesting within my application. I'm suspicious
that this may not be a DBISam issue, but moreso a TDataset issue, but
I'm still not sure how to go about dealing with it...

I have noticed that within my application, if I have a master /detail
setup with two TDBISamTables, if I put the master and detail in edit,
and then post the master, the detail automatically posts at the same
time - but it does not trigger the onbeforepost event.

Has anyone else come across this, or have any ideas on what I should do
to do to combat it?

Delphi 2007

Cheers

Adam.
Mon, Apr 22 2013 11:25 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Adam,

<< I have noticed that within my application, if I have a master /detail
setup with two TDBISamTables, if I put the master and detail in edit, and
then post the master, the detail automatically posts at the same time - but
it does not trigger the onbeforepost event. >>

Are you sure that the detail is actually posting and not just cancelling ?
If the detail record isn't modified, then the TDataSet will just cancel the
edit instead of posting it.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Apr 22 2013 6:33 PMPermanent Link

Adam H.

Hi Tim,

> Are you sure that the detail is actually posting and not just cancelling
> ? If the detail record isn't modified, then the TDataSet will just
> cancel the edit instead of posting it.

And that would be the case. Thanks for the clarification!

Cheers

Adam.
Image