Subject | Re: [IBO] Dataset States and Master Detail |
---|---|
Author | Roger Webb |
Post date | 2001-11-19T22:02:48Z |
--- In IBObjects@y..., Svein Erling Tysvær
<svein.erling.tysvaer@k...> wrote:
Update, because thats not the effect I'm going for..
When the state of the Dataset changes... I want to change a label.
Which works in a single dataset environment. It also works in a
Master Detail...when you start editing the detail. It does not work
when you edit the master record... From what I can tell, it is
changing the label , but then the statechecking procedure is run by
the detail (which technically hasnt changed states. This returns it
to looking like it is in dssBrowse. Even though the MASTER is
dssEdit.
So I guess the problem is that when the Master query changes
states... the Detail query is firing off the OnStateChanged procedure
as well, even though it didnt change states itself.
- Roger
<svein.erling.tysvaer@k...> wrote:
> Hi Roger!BeforeInsert/BeforeUpdate and
>
> I think I would have attached your code to
> AfterPost of your TIB_Queries rather than the TIB_DataSources, butI guess
> you may be able to work around your problems by checking the stateof
> ADataset.MasterDataset in addition to ADataset.Well, I'm not doing anything in the Before Insert or the Before
>
> HTH,
> Set
Update, because thats not the effect I'm going for..
When the state of the Dataset changes... I want to change a label.
Which works in a single dataset environment. It also works in a
Master Detail...when you start editing the detail. It does not work
when you edit the master record... From what I can tell, it is
changing the label , but then the statechecking procedure is run by
the detail (which technically hasnt changed states. This returns it
to looking like it is in dssBrowse. Even though the MASTER is
dssEdit.
So I guess the problem is that when the Master query changes
states... the Detail query is firing off the OnStateChanged procedure
as well, even though it didnt change states itself.
- Roger