Subject | Re: [IBO] Howto manually update control when detail dataset changes |
---|---|
Author | Lucas Franzen |
Post date | 2001-11-23T15:27:30Z |
mirco@... schrieb:
is so?
When you scroll the master record in a master-detail relationship it is
re-querying the detail query, otherwise you wouldn't see the detail
records for the current master but something else.
For example if you have "raOpen" then you can trigger the event in the
OnAfterOpen of the Detail-Query.
Luc.
> =================================================================Still the answer is: when the row of "Master-Row" changes.
> The question is: how do I know when the detail dataset requeries?
> =================================================================
> There is a straight-forward answer to this, which I heard severalI don't see why it's ineffective. Can you point out why you do think it
> times: do your update whenever the *master* datasource changes the
> row.
> As I said, this seems wrong to me. No, rather ineffective.
is so?
> It works yes, but you miss the point thatWhy?
> 'master dataset scroll' is not equal to 'detail dataset requery'.
When you scroll the master record in a master-detail relationship it is
re-querying the detail query, otherwise you wouldn't see the detail
records for the current master but something else.
> Scrolling the master dataset is *one* event to trigger a requery.Which ones?
> There are others.
> I am wondering how TIB_Grid does it. It updates whenever the query itMaybe the refresh action of the Detail Query will do what you want.
> is attached to requeries and doesn't know anything about other master
> data sources.
> So what is that event that makes the grid refresh all its rows and
> that I would like to hook into to do the same with my special
> visualization?
For example if you have "raOpen" then you can trigger the event in the
OnAfterOpen of the Detail-Query.
Luc.