Subject | Re: Edit after insert/post |
---|---|
Author | stewartbourke@eircom.net |
Post date | 2001-02-15T15:34:07Z |
Patrick,
I did not have any explicit transactions open. Is one implied in
IBO?
Stewart
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]