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