TIBCQuery Insert of a new dataset and Editing data
Posted: 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.
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.