Subject | Re: [IBO] Problem with Append in a IBOTable |
---|---|
Author | Helen Borrie |
Post date | 2001-08-30T13:27:11Z |
At 12:26 PM 30-08-01 +0000, you wrote:
It doesn't apply to Inserts (Appends) because the rows don't exist.
The trigger will not be used by the application but it should remain there, as a safeguard in case somebody tries to enter data interactively.
ID
Regards,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>--- In IBObjects@y..., Helen Borrie <helebor@d...> wrote:PessimisticLocking is a property of the underlying TIB_Dataset. It comes into effect only in edits - when you begin to edit your dataset, the rows you edit are given a "dummy update" which causes them to be unavailable to any other transactions which want to update that row.
> > At 10:39 AM 30-08-01 +0000, you wrote:
> > >Hi
> > >I have a big problem with Append in a IBOTable
> > >I use IBO 3.6 Dg (demo) because I would like convert my
>application
> > >from DBF to IBO.
> > >I use IBOTable with PessimisticLock = TRUE
> >
>
> PessimisticLockING does not apply to Appends. what you mean ??
It doesn't apply to Inserts (Appends) because the rows don't exist.
> IboTable1.PessimisticLock := TRUE;Why do you think so? IB Transaction control normally provides sufficient isolation.
>
> For me is neccessary!!!!
> > Questions:Delphi "knows" that your ID column has a NOT NULL constraint. You have to find a way to provide a value for it before posting, because Delphi doesn't know about your trigger. Set your GeneratorLinks for this column, and IBO automatically brings the value into that field for you ---> no more errors.
> >
>
>Are you getting any error messages, such as "ID is a required field" ?
> YES!!!
The trigger will not be used by the application but it should remain there, as a safeguard in case somebody tries to enter data interactively.
> >Simply enter this into the KeyLinks property:
> Have you set KeyLinks for the table?
> How?? Post me an example , please
ID
>See Svein's posting.
> >
> Have you set GeneratorLinks for the table?
> How?? Post me an example , please
>The trigger never fires on the client side, always only on the server, ** after ** the row has been posted. If the new row does not reach the server, the trigger will not fire. Your Append never goes to the server, because of the "Required field" error. You will cure this by using GeneratorLinks.
> How can you tell that the trigger is not firing?
> what you mean ??
Regards,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________