TIBCQuery Insert of a new dataset and Editing data

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
barnie00
Posts: 11
Joined: Mon 24 Sep 2007 20:37

TIBCQuery Insert of a new dataset and Editing data

Post by barnie00 » Mon 24 Sep 2007 20:57

Hello!

I'm trying IBDAC 2.10.
And now I have two problems.
I have a program with a DBGrid, several DBEdit-Fields and an DBNavigator.

(1) When I use the "Insert"-Button of the DBNavigator sometimes I have to press the button twice to get a new line in the DBGrid and empty DBEdits to enter new data.
What's wrong, what can I do?

(2) When I enter/change data in the DBEdits sometimes the data is posted into the database sometimes not. In the second case the DBEdit is empty or the old data is still shown in the DBEdit when I reconnect to the database.
It is clear that this is the result of a Post()-Problem. Im sending a TIBCQuery->Post() in the OnExit-Event (and a TIBCQuery->Edit() in the OnEnter-Event) of the DBEdits.
Is there the better way to post the data?

Thank you very much.
My first impression of the product is very positiv much better than some others I have tried in the last weeks.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 27 Sep 2007 08:06

1. We could not reproduce the problem. If it is possible, send to odac*crlab*com a complete small sample that demonstrates the problem, including script to create server objects.

2. You don't need to call the Edit method because it is called automatically when you change a text in a TDBEdit control. The Post method is also called automatically when you move to another record in the TDBGrid control. I think you can also call the Post method when a user presses some button, or use the Post button in the TDBNavigator control.

Boro
Posts: 21
Joined: Wed 19 Sep 2007 21:58

Post by Boro » Mon 08 Oct 2007 13:55

Barnie00,
could you please mention those other products you tried last weeks ? Possibly your experience could save me (and others) some time as I am looking for FB/IB components (Delphi) too.

Thanks in advance,
Boro

Post Reply