Subject Re: [IBO] Dataset refresh
Author Robert martin
Great thanks for your Help :)

Rob Martin
Software Engineer

phone 03 377 0495
fax 03 377 0496
web www.chreos.com
Wild Software Ltd
----- Original Message -----
From: radevojvodic
To: IBObjects@yahoogroups.com
Sent: Wednesday, September 08, 2004 6:38 PM
Subject: Re: [IBO] Dataset refresh


It's not that complicated at all.

First step is to set up "After" triggers in the database. In every
trigger you should post event with POST_EVENT directive. That is
well documented in Interbase documentation. In your application you
should place IB_Events. In form's OnCreate event you should do
IB_Events.Register (maybe the name of method is not right but code
completion will take care of that). In the IB_Event you can register
up to 16 events (Interbase Limitation). In a IB_Event.OnAlert (or
something like that) you can put TIBOTable.Refresh and that's it.
In form's Close event you put IB_Events.Unregister and everything
should work.

Hope this helps.

--- In IBObjects@yahoogroups.com, "Robert martin" <rob@c...> wrote:
> Hi
>
> That sounds like an interesting solution and may be similar to
what the BDE was automating for us (with LocalShare = True). I will
look at implementing this ASAP. Just as soon as I work out how to
do all this event stuff :)
>
>
> Rob Martin
> Software Engineer
>
> phone 03 377 0495
> fax 03 377 0496
> web www.chreos.com
> Wild Software Ltd
> ----- Original Message -----
> From: radevojvodic
> To: IBObjects@yahoogroups.com
> Sent: Tuesday, September 07, 2004 7:12 PM
> Subject: Re: [IBO] Dataset refresh
>
>
> Hi Rob,
>
> There is a easy way you can do this. You just need to set an
> AfterInsert and AfterEdit trigger which will do POST_EVENT
> (POST_EVENT 'ItemChanged') and you should set IB_EventAlerter
and
> register that event on Invoice form then every change in Item
table
> will be captured. In the event alerter component you could set
> OnEvent method to do Invoice.Refresh.
> It should work even in multi-user enviroment.
>
>
> [Non-text portions of this message have been removed]



___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !


Yahoo! Groups Sponsor
ADVERTISEMENT





------------------------------------------------------------------------------
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/IBObjects/

b.. To unsubscribe from this group, send an email to:
IBObjects-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]