TIBCTable refresh after insert error

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
haraldhuth
Posts: 3
Joined: Tue 23 May 2017 16:58

TIBCTable refresh after insert error

Post by haraldhuth » Tue 23 May 2017 17:16

Hi There,

I'm new to ibdac so please excuse this question:

When using a TIBCTable for Inserting Data as well, the Autogenerated Field does not show a result. In the RefreshOptions with AfterInsert an error fires "Refresh failed. 0 Rows affected". The Trigger "OnAfterPost" with Table.RefreshRecord doesn't work either. How do I have to setup the IBCTable? Thank's for your help.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: TIBCTable refresh after insert error

Post by ViktorV » Wed 24 May 2017 11:16

To return the value of an auto-incremental field generated on the server-side, you should set the TIBCTable.DMLRefresh property to True. See more details about this property in the IBCDAC help: https://www.devart.com/ibdac/docs/?deva ... efresh.htm

Post Reply