DBEdit State when Opening a DataSet and QBEMode is true

staffanmw

Member²
I have a form where I want the user to first of all search for data to work with. For this case I have set the OracleDataSet.QBEMode initially to True.

But - when the dataset is opend the user can not type anything in the TDBEdit fields to search for. If the user toggles the QBEMode once the fields is 'opend' for QBE parameters.

What am I doing wrong?

------------------
 
That's difficult to say. If, for example, you take the DeptEmp demo project and set the QBEMode property of one of the datasets to True at design time, you will see that it starts out in QBE mode and that you can enter QBE values. How does your project differ from the DeptEmp demo?

------------------
Marco Kalter
Allround Automations
 
The differs between My Project and the DeptEmp Project is that the TDataSource connected to the TOracleDataSet have AutoEdit set to True.

My users don't want AutoEdit.

Regards,
Staffan
 
Well, the complicating factor here is that 3.4.4 will also be our Kylix release. Therefore 3.4.4 will contain both the 3.4.3 fixes, and the changes to make it compatible with Kylix. As you may know, we released the 3.4.4 Kylix Beta today. When the production version for Kylix is available, 3.4.4 will also become available for Delphi and C++Builder. It is difficult to predict exactly when that will be, but I hope it won't be long.

------------------
Marco Kalter
Allround Automations
 
It turned out that this bug is not easily fixed, but fortunately there are 2 easy work arounds:

1. Use TOracleDataSet.Active := True instead of TOracleDataSet.Open.

2. Call TOracleDataSet.Edit after opening the dataset in QBE mode.

------------------
Marco Kalter
Allround Automations
 
Back
Top