Subject | Re: [IBO] Inheriting event |
---|---|
Author | Paul Gallagher |
Post date | 2001-02-16T03:06:48Z |
I actually started doing exactly what you suggested. I was hoping there
would be an easier way though.
Thanks,
Paul
would be an easier way though.
Thanks,
Paul
----- Original Message -----
From: "Geoff Worboys" <geoff@...>
To: <IBObjects@yahoogroups.com>
Sent: Thursday, February 15, 2001 8:58 PM
Subject: Re: [IBO] Inheriting event
> > How do I inherit the OnAfterPost event in a custom
> > component? The SysDataChanged and SysStateChanged seem
> > to be there automatically. I have tried just including
> > the IBA_Dataset.INT file with a compiler directive,
> > but that didn't work....
>
> The events you are using come from the datalink, it gets its event
> information broadcast from the DataSource, which gets its info from
> the dataset. So the short answer is that you cannot get OnAfterPost
> directly.
>
> The best I can come up with, is to track things using StateChanged.
> Keep an internal property LastState. Whenever you get a statechanged
> event, check whether the LastState was dssEdit or dssInsert - if so
> then the dataset was either posted or cancelled.
>
> I would also query why you need OnAfterPost. I thought you should be
> able to get everything you need as a result on DataChanged events.
>
> Geoff Worboys
> Telesis Computing
>
>
>
>
>
>