Subject | Re: [IBO] Inheriting event |
---|---|
Author | Geoff Worboys |
Post date | 2001-02-16T02:58:48Z |
> How do I inherit the OnAfterPost event in a customThe events you are using come from the datalink, it gets its event
> 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....
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