Subject | Re: [IBO] Using IB_Events |
---|---|
Author | Lester Caine |
Post date | 2005-10-03T07:29:05Z |
ra8009 wrote:
You need to create triggers in the database which detect exactly what
changes you want the 'world' to know about ( it does not happen
automatically ;) )
CREATE TRIGGER NEWTRIGGER FOR CALLING
AFTER UPDATE
POSITION 0
AS
BEGIN
POST_EVENT "CALL_UPDATE";
END
so you register to receive "CALL_UPDATE"
I have more complex triggers that just give - say - "TRAIN_ARRIVED"
so you can do what ever you want :)
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
Treasurer - Firebird Foundation Inc.
> I don't understand what events I can register and use with IB Events.The one's you create ;)
>
> My challenge is that when one user modifies a record in a particular
> table, I need to have other users views immediately refreshed. Is this
> possible with IB_Events? Which event do I register?
You need to create triggers in the database which detect exactly what
changes you want the 'world' to know about ( it does not happen
automatically ;) )
CREATE TRIGGER NEWTRIGGER FOR CALLING
AFTER UPDATE
POSITION 0
AS
BEGIN
POST_EVENT "CALL_UPDATE";
END
so you register to receive "CALL_UPDATE"
I have more complex triggers that just give - say - "TRAIN_ARRIVED"
so you can do what ever you want :)
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
Treasurer - Firebird Foundation Inc.