Subject Re: [IBO] Re: cache sync - before edit
Author Harald Klomann
> I find AutoEdit to be a nice feature, and refreshing all fields when
> entering edit state (automatically) shouldn't be that problematic ?

As you know, all fields are beeing refreshed. But it is the windows behavior,
what happens when you type in a key. Then, after the first KeyPress, IBO acts
with going into editState and so on.

This should be a solution for your, if bsBeforeEdit=TRUE :

procedure TForm1.IB_Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if IB_DataSource1.State = dssBrowse then begin
IB_Query1.Edit;
end
end;

Harald


pi3k14 schrieb:
>
> Could you elaborate on "AutoEdit in apps is generally not a good idea
> anyway." ?
> I find AutoEdit to be a nice feature, and refreshing all fields when
> entering edit state (automatically) shouldn't be that problematic ?
>
> sincerely
> frode
>
> --- In IBObjects@y..., "Jason Wharton" <jwharton@i...> wrote:
> > I recommend that you do not use AutoEdit if this is a concern.
> > AutoEdit in apps is generally not a good idea anyway.
> >
> > Jason Wharton
> > CPS - Mesa AZ
> > http://www.ibobjects.com
> >
> > -- We may not have it all together --
> > -- But together we have it all --
> >
> >
> > ----- Original Message -----
> > From: "pi3k14" <frode@a...>
> > To: <IBObjects@y...>
> > Sent: Thursday, November 28, 2002 12:18 AM
> > Subject: [IBO] Re: cache sync - before edit
> >
> >
> > > --- In IBObjects@y..., "pi3k14" <frode@a...> wrote:
> > > > --- In IBObjects@y..., Harald Klomann <nibler@t...> wrote:
> > > > > No problem when setup with bsBeforeEdit !
> > > > > Check your undelaying transaction - is it commited ?
> > > > >
> > > > > Harald
> > > >
> > > > Yes,it is. And I am using read commited no wait isolation level.
> > > >
> > > > From your reply I assume it work for you? And you don't do any
> > > manual
> > > > refresh of the data in the failed post, or move the cursor
> after
> > > the
> > > > failure ?
> > > >
> > > > frode
> > >
> > > :) I found what is going on.
> > >
> > > IBObjects doesn't update the field where I am starting to edit,
> but
> > > it update all other fields correctly.
> > >
> > > Is there any flag to set or event to respond to so also the Edit
> > > field where I start to type get refreshed before my typed
> character
> > > is added ?
> > >
> > > frode
>
>
> ___________________________________________________________________________
> 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 !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/