Subject | Re: [IBO] Re: Edit after insert/post |
---|---|
Author | Patrick Lenz |
Post date | 2001-02-15T17:53:57Z |
since i am working with IBX and IBO I mixed these up again.
when i saw Jason's reply I realized that IBtable and IBOtable could not be more different :)
sorry for the confusion.
when i saw Jason's reply I realized that IBtable and IBOtable could not be more different :)
sorry for the confusion.
----- Original Message -----
From: stewartbourke@...
To: IBObjects@yahoogroups.com
Sent: Thursday, February 15, 2001 7:34 AM
Subject: [IBO] Re: Edit after insert/post
Patrick,
I did not have any explicit transactions open. Is one implied in
IBO?
Stewart
--- In IBObjects@y..., "Patrick Lenz" <patrick_lenz@y...> wrote:
> Did you somehow commit your transaction ?
> If you did commitretaining, you should be on the same record.
> Patrick
> ----- Original Message -----
> From: stewartbourke@e...
> To: IBObjects@y...
> Sent: Wednesday, February 14, 2001 9:42 AM
> Subject: [IBO] Edit after insert/post
>
>
> This may not be an IBO-specific question but I am a bit confused
as
> to how IBO behaves after a record has been posted.
>
> If I do the following:
>
> table1.open;
> table1.insert;
> ...
> assign various field values here
> ...
> ...
> table1.post;
> ...
> table1.edit;
> ...
> change field values
> ...
> table1.post;
>
> After the second post I get an exception 'record not found for
update'
>
> My understanding was that after the insert, the current record
> pointer was on the record just posted so a call to table1.edit
would
> place the record I have just edited into edit mode - thus
allowing me
> update the contents of the record. However, this error would
seem to
> point to this not being the case.
>
> Would anybody be able to explain what actually happens after and
> insert and what is the correct way to carry out this type of
> operation.
>
> Thanks,
>
> Stewart Bourke
>
>
>
>
>
>
> Yahoo! Groups Sponsor
>
> www.
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
www. .com
[Non-text portions of this message have been removed]