Page 1 of 1

Sending a message when a event fire

Posted: Tue 22 Jul 2008 05:31
by henry2495
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

Posted: Tue 22 Jul 2008 07:18
by Plash
The TIBCAlerter component does not support sending data with an event.

Posted: Tue 22 Jul 2008 14:38
by xstef
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