Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread OnStateChange not fired in Master-detail Query
Wed, Jan 4 2006 1:43 PMPermanent Link

Chris Erdal
As I can't "see" the datasets, I'm trying to use the onStateChange event of
the detail TDBISAMQuery's DataSource (i.e. the one used by the detail grid)
to react when the detail reopens after the master TDBISAMQuery scrolls.

The detail TDBISAMQuery closes and reopens, giving the AfterOpen event as
expected, but the DataSource doesn't fire the onStateChange.

Is this caused by the TDBISAMQuery not telling the TDataSource to fire it,
and if so can it be corrected? Or is it Delphi's way of doing things?

--
Chris.
Wed, Jan 4 2006 4:04 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Chris,

<< As I can't "see" the datasets, I'm trying to use the onStateChange event
of the detail TDBISAMQuery's DataSource (i.e. the one used by the detail
grid) to react when the detail reopens after the master TDBISAMQuery
scrolls.

The detail TDBISAMQuery closes and reopens, giving the AfterOpen event as
expected, but the DataSource doesn't fire the onStateChange.

Is this caused by the TDBISAMQuery not telling the TDataSource to fire it,
and if so can it be corrected? Or is it Delphi's way of doing things? >>

DisableControls is called during the Close/Open when refreshing the
master-detail parameters for the query.  This is compatible with the way
Borland coded the TQuery component, so I'm a bit reluctant to change it and
have it start firing events.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Jan 5 2006 2:54 AMPermanent Link

Chris Erdal
> DisableControls is called during the Close/Open when refreshing the
> master-detail parameters for the query.  This is compatible with the
> way Borland coded the TQuery component, so I'm a bit reluctant to
> change it and have it start firing events.
>

Fine. I just wanted to be sure it was as designed before working out how to
get around my problem.

Thanks for your quick response.

Chris

--
Thu, Jan 5 2006 4:48 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Chris,

<< Fine. I just wanted to be sure it was as designed before working out how
to get around my problem. >>

No problem.  I'm sorry that I couldn't be more helpful in this case. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Image