Subject | RES: [firebird-support] Re: Using IBEvents. |
---|---|
Author | Gerson Machado - Yahoo |
Post date | 2004-10-11T11:20:06Z |
Yes it help me, I forget the commit in my IBTransaction component, all
is working now,
Tks
Gerson Machado
-----Mensagem original-----
De: Ross [mailto:bajanumel@...]
Enviada em: domingo, 10 de outubro de 2004 20:26
Para: firebird-support@yahoogroups.com
Assunto: [firebird-support] Re: Using IBEvents.
Hi Gerson,
I am a amateur so what I am about to say may not make sense or is so
basic you would have probably done it already...
I was interested in using events so that I would not have to keep
polling the database using a timer. So I added an event to a trigger
in the database below:
if (new.event_type = 'A') then
post_event 'New_Event_Added';
And I added a IBEvent component to the delphi application and used
the OnEventAlert handler like
if EventName = 'New_Event_Added' then
....
Also for the Events (TStrings property of the IBEvent component) I
added the name of the event in there as well.
Hope it helps in the least
Ross Simmons
Internet Division
Sunbeach Communications Inc.
"San Remo" Belmont Road,
St. Michael, Barbados
PBX: (246) 430-1569
Voice: (246) 430-1586
Fax: (246) 228-6330
Email: ross.simmons@...
Website: HYPERLINK "http://www.sunbeach.net"http://www.sunbeach.net
--- In firebird-support@yahoogroups.com, "Gerson Machado - Yahoo"
<gersonamach@y...> wrote:
a=ibphoenix&page=ibp_interbase_contro
a=ibphoenix&page=ibp_interbase_co
ADVERTISEMENT
HYPERLINK
"http://us.ard.yahoo.com/SIG=129hv8318/M=295196.4901138.6071305.3001176/
D=groups/S=1705115386:HM/EXP=1097537175/A=2128215/R=0/SIG=10se96mf6/*htt
p:/companion.yahoo.com"click here
HYPERLINK
"http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=294807518"
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
HYPERLINK
"http://groups.yahoo.com/group/firebird-support/"http://groups.yahoo.com
/group/firebird-support/
* To unsubscribe from this group, send an email to:
HYPERLINK
"mailto:firebird-support-unsubscribe@yahoogroups.com?subject=Unsubscribe
"firebird-support-unsubscribe@yahoogroups.com
* Your use of Yahoo! Groups is subject to the HYPERLINK
"http://docs.yahoo.com/info/terms/"Yahoo! Terms of Service.
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.775 / Virus Database: 522 - Release Date: 8/10/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.775 / Virus Database: 522 - Release Date: 8/10/2004
[Non-text portions of this message have been removed]
is working now,
Tks
Gerson Machado
-----Mensagem original-----
De: Ross [mailto:bajanumel@...]
Enviada em: domingo, 10 de outubro de 2004 20:26
Para: firebird-support@yahoogroups.com
Assunto: [firebird-support] Re: Using IBEvents.
Hi Gerson,
I am a amateur so what I am about to say may not make sense or is so
basic you would have probably done it already...
I was interested in using events so that I would not have to keep
polling the database using a timer. So I added an event to a trigger
in the database below:
if (new.event_type = 'A') then
post_event 'New_Event_Added';
And I added a IBEvent component to the delphi application and used
the OnEventAlert handler like
if EventName = 'New_Event_Added' then
....
Also for the Events (TStrings property of the IBEvent component) I
added the name of the event in there as well.
Hope it helps in the least
Ross Simmons
Internet Division
Sunbeach Communications Inc.
"San Remo" Belmont Road,
St. Michael, Barbados
PBX: (246) 430-1569
Voice: (246) 430-1586
Fax: (246) 228-6330
Email: ross.simmons@...
Website: HYPERLINK "http://www.sunbeach.net"http://www.sunbeach.net
--- In firebird-support@yahoogroups.com, "Gerson Machado - Yahoo"
<gersonamach@y...> wrote:
> I put in my Delphi 7 application and Firebird 1.5 (4481) the events"http://www.ibphoenix.com/main.nfs?"http://www.ibphoenix.com/main.nfs?
> mensage, like:
>
> HYPERLINK
> "HYPERLINK
a=ibphoenix&page=ibp_interbase_contro
> l#10"HYPERLINK"http://www.ibphoenix.com/main.nfs?"http://www.ibphoenix.com/main.nfs?
a=ibphoenix&page=ibp_interbase_co
> ntrol#10"http://www.grisoft.com)."http://www.grisoft.com).
>
> I registrered my component events in my FormShow like:
>
> IBEvents1.Registered := true;
>
> And test my application and nothing happened, what you sugests.
>
> Tks
>
> Gerson Machado
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (HYPERLINK
> Version: 6.0.775 / Virus Database: 522 - Release Date: 8/10/2004Yahoo! Groups Sponsor
>
>
>
> [Non-text portions of this message have been removed]
ADVERTISEMENT
HYPERLINK
"http://us.ard.yahoo.com/SIG=129hv8318/M=295196.4901138.6071305.3001176/
D=groups/S=1705115386:HM/EXP=1097537175/A=2128215/R=0/SIG=10se96mf6/*htt
p:/companion.yahoo.com"click here
HYPERLINK
"http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=294807518"
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
HYPERLINK
"http://groups.yahoo.com/group/firebird-support/"http://groups.yahoo.com
/group/firebird-support/
* To unsubscribe from this group, send an email to:
HYPERLINK
"mailto:firebird-support-unsubscribe@yahoogroups.com?subject=Unsubscribe
"firebird-support-unsubscribe@yahoogroups.com
* Your use of Yahoo! Groups is subject to the HYPERLINK
"http://docs.yahoo.com/info/terms/"Yahoo! Terms of Service.
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.775 / Virus Database: 522 - Release Date: 8/10/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.775 / Virus Database: 522 - Release Date: 8/10/2004
[Non-text portions of this message have been removed]