Hi, Marco!
I want to share my experience of usage of TOracleDataSet.
In documentation we can find smth. like :
but in practice it is not true. The problem is when i simply update records in OnApplyRecord during I/U actions it writes values to different buffer because TOracleDataSet.Applying =...
Hi, Marko.
Have another set of wrong behaviour of TOracleDataSets:
1) Delphi documentation states that
(ms-help://embarcadero.rs_xe3/libraries/Data.DB.TDataSet.Eof.html)
But in case when oracle dataset has one inserted and not posted record then
both of EOF and BOF remains true.
Addition check...
Please, consider attach to see what i mean.
1) Install your own session
2) compile and run under XE3
3) insert record.
4) apply updates. Note, that 'id' field on screen is not changed.
5) try to edit that new record => 'Record has been changed' error occurs...
I have next implementation of CommitUpdates:
procedure TOracleSession.CommitUpdates(const DataSets: array of TDataSet);
var i: Integer;
DataSetList: TList;
begin
DataSetList := OrderedDataSetList(DataSets);
try
// Commit the updates in each dataset (Detail -> Master)
for i :=...
Tried to implement next architecture:
1) Generate fake id's on AfterInsert statement
MyDS.FieldByName('MY_ID').AsInteger := nFakeID;
2) Change them to real ones on OnApplyUpdates:
MyDS.FieldByName('MY_ID').AsInteger := nRealID;
Applied => FALSE to let DOA do rest of the work
=>
Record...
Sorry, but i didn't specify exactly my use case.
I don't need refresh as i need to try to re-commit local uncommitted changes. I don't want lost them after first failed try.
Hi.
I have DOA v 4.1 and I have an TOracleDataset which works with next parameters:
CachedUpdates=FALSE
CommitOnPost = FALSE
So, when i post record it is written to DB. After that it might be situation that i will roll back my changes. How can revert my TOracleDataset to meaningful state in...
It's clear from documentation on how to declate 'PL/SQL Table' at runtime
(DeclareVariable + DimPLSQLTable.) but i don't see any guide on how to declare simple array variable at runtime for Array DML...
I'm using DOA 4.1