Subject Re: Post_Event with 2 parameters
Author Kevin Herrmann
From: Yossi Zaig <yle@...>
> Subject: Post_Event with 2 parameters
>
> Using FB 1.5 / Delphi 7 / FIBPlus.
>
> Is it possible to send 2 parameters with Post event,
> I am looking for way to notify the client that some table was updated and
> which record for example:
> POST_EVENT 'TableUpdate', 'Customers-12345'
>

Yossi, unsure of the length limitations on POST_EVENT but couldn't you just
concatenate the messages with a separator? Seems like the first part will be
defined by you and will be a limited set of values. Then add the latter part.
So, use an integer or short string, a separator, and then the table+record ID.

Some examples:
POST_EVENT 'TableUpdate' || '/' || 'Customers-12345'
POST_EVENT 'TU' || ':' || 'Customers-12345'
POST_EVENT '3' || '-' || 'Customers-12345'

Then parse event text in app.

Kevin