Subject Re: no firing event using firebird 1.5 RC5 on w2k and XP
Author cwkuok
yup, ur right.. it was my mistake.

now i can fire the event after changing the event name on
SIBfibEventAlerter1 to match event name on my trigger..

Thks a lot Martijn Tonies ;)


--- In firebird-support@yahoogroups.com, "Martijn Tonies"
<m.tonies@u...> wrote:
> Hi,
>
>
> > I cant have any firing event on my application using firebird 1.5
RC5
> > and FIbplus component 4.8.1....
> > on both XP with with service pack 1 and W2k with service pack 3.
> > why?
> >
> > following are the description on what I did:
> >
> > on the firebird the trigger i used:
> >
> > SET TERM !!;
> > CREATE TRIGGER POST_NEW_ORDER FOR INVOICEDETAIL ACTIVE AFTER
INSERT
> > POSITION 0 AS
> > BEGIN
> > POST_EVENT 'new_invoice';
>
>
> You are fireing event "new_invoice"
>
> > the onAlertEvent for SIBfibEventAlerter1
> >
> > procedure TDataModule2.SIBfibEventAlerter1EventAlert(Sender:
TObject;
> > EventName: String; EventCount: Integer);
> > begin
> > if EventName='POST_NEW_ORDER' then
>
> But are catching event "post_new_order" ... Which is the trigger
name.
>
> Needless to say - these don't match.
>
>
> With regards,
>
> Martijn Tonies
> Database Workbench - the developer tool for InterBase & Firebird
> Upscene Productions
> http://www.upscene.com