Subject | Re: [IBO] Basic IBO usage question |
---|---|
Author | Paul Vinkenoog |
Post date | 2003-08-10T11:24:39Z |
Hi Peter,
are work in progress. I don't know what they are for, but the standard
procedure is, after setting the field values like you did:
at that. Otherwise, you have to call Transaction.Commit or
Transaction.CommitRetaining.
In an exception handler, you could call Transaction.Rollback or
Transaction.RollbackRetaining
HTH,
Paul Vinkenoog
> I have just started using IBObjects again, previously I had beenMy help files state that ApplyUpdates, CommitUpdates and CancelUpdates
> using the IBO_Transaction bar I am now trying to do multiple inserts
> in code, but the transaction is obviosuly not commiting.
>
> I can't find anything in the help , or getting started guide ?
are work in progress. I don't know what they are for, but the standard
procedure is, after setting the field values like you did:
> Product_IB_Datasource.Insert;...to call Post on the Dataset:
>
> Product_IB_Query.FieldByName('VENDOR_ID').AsInteger := ...
> ...
> Product_IB_Query.Post;If your transaction component has AutoCommit true, you can leave it
at that. Otherwise, you have to call Transaction.Commit or
Transaction.CommitRetaining.
In an exception handler, you could call Transaction.Rollback or
Transaction.RollbackRetaining
HTH,
Paul Vinkenoog