Sending a message when a event fire

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
henry2495
Posts: 1
Joined: Tue 22 Jul 2008 05:23

Sending a message when a event fire

Post by henry2495 » Tue 22 Jul 2008 05:31

Good Day

I would like to know if it is possible when a my event fires if it is possible to pass a message with the event.

What I want to do is the following. My event fires when a new record are inserted in a new table and if a specific screen are open by the users.
If the screen are open I also want to add a condition to say if the week that are inserted into the new table are not currently visible on the user screen then dont listen to the event and just ignore everything.

That is way when my event fires I want to pass the week with the event and return the week when the event triggers on all the other pc's

Thank you

Henry

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 22 Jul 2008 07:18

The TIBCAlerter component does not support sending data with an event.

xstef
Posts: 22
Joined: Sat 09 Sep 2006 20:44

Post by xstef » Tue 22 Jul 2008 14:38

Dear Henry,
firebird messages do not support sending of any data appart from the name of the event. If you want to pass data when an event is fired you should create a table where you store the event name and the data you want to pass. ex: msgs(msgsid integer, eventname varchar(20), eventdata varchar(50)). Then when you get an event from the Alerter you read the table and get the data that you have stored for the specific event name. After that you can delete the record from the messages table.

Good luck

Stefanos

Post Reply