Hi, I'm using DOA 3.4.6.4 with Delphi 5 and I have a weird problem.
I'm converting an application that used BDE into DOA and that application worked perfectly with the BDE. But I changed a TTable component for a TOracleDataSet, and now, whenever I hit the refresh button of my TDBNavigator, the TOracleDataSet refreshes, but goes back to the first record.
My TOracleDataSet's SQL is as follow :
SELECT TEMPLOYE.*, TEMPLOYE.RowID
FROM TEMPLOYE
ORDER BY No_employe
I tried adding 2 buttons to y interface, one which calls MyOracleDataSet.Refresh and the other class MyOracleDataSet.RefreshRecord.
The result is that the Refresh method lost the current record and goes back to the first record, while RefreshRecord works perfectly.
My guess is that the TDBNavigator (and also the TOracleNavigator) calls the Refresh method and that there's a bug in that method. But I'm new to DOA, so there may be something I don't understand correctly.
I have a solution to that. I can simply trap my navigator's BeforeAction and if the button is nbRefresh, I call the RefreshRecord function and abort. But don't like that solution much and would like to know if there's something I'm doing wrong and if there's something else I could do.
Thanks
Martin L'Heureux
I'm converting an application that used BDE into DOA and that application worked perfectly with the BDE. But I changed a TTable component for a TOracleDataSet, and now, whenever I hit the refresh button of my TDBNavigator, the TOracleDataSet refreshes, but goes back to the first record.
My TOracleDataSet's SQL is as follow :
SELECT TEMPLOYE.*, TEMPLOYE.RowID
FROM TEMPLOYE
ORDER BY No_employe
I tried adding 2 buttons to y interface, one which calls MyOracleDataSet.Refresh and the other class MyOracleDataSet.RefreshRecord.
The result is that the Refresh method lost the current record and goes back to the first record, while RefreshRecord works perfectly.
My guess is that the TDBNavigator (and also the TOracleNavigator) calls the Refresh method and that there's a bug in that method. But I'm new to DOA, so there may be something I don't understand correctly.
I have a solution to that. I can simply trap my navigator's BeforeAction and if the button is nbRefresh, I call the RefreshRecord function and abort. But don't like that solution much and would like to know if there's something I'm doing wrong and if there's something else I could do.
Thanks
Martin L'Heureux