Problems with TClientDataSet.ApplyUpdates (UPDATE) when linked to UniStoredProc with update SQLs set
Posted: Sun 11 Jan 2015 04:40
Using: Delphi XE2 Enterprise, UniDAC 6.0.1 Professional, Firebird 2.5.3
I have a TClientDataSet linked to a UniStoredProc which has its Update SQLs for INSERT and UPDATE set (to corresponding database stored procedures). The DataSetProvider has ResolveToDataSet set to True.
In my application when I call ClientDataSet.ApplyUpdates it works for INSERTs. (I'm inserting data into a DBGrid that is linked to the ClientDataSet).
However when updating data in grid, ClientDataSet.ApplyUpdates does not work. When checked with DBMonitor, it shows that the SELECT stored procedure to which the client dataset is linked is being called.
Not sure what to do.. how to resolve this? I need it (ApplyUpdates) to call the Update stored procedure that is set in the SELECT UniStoredProc's SQLUpdate property.
I have a TClientDataSet linked to a UniStoredProc which has its Update SQLs for INSERT and UPDATE set (to corresponding database stored procedures). The DataSetProvider has ResolveToDataSet set to True.
In my application when I call ClientDataSet.ApplyUpdates it works for INSERTs. (I'm inserting data into a DBGrid that is linked to the ClientDataSet).
However when updating data in grid, ClientDataSet.ApplyUpdates does not work. When checked with DBMonitor, it shows that the SELECT stored procedure to which the client dataset is linked is being called.
Not sure what to do.. how to resolve this? I need it (ApplyUpdates) to call the Update stored procedure that is set in the SELECT UniStoredProc's SQLUpdate property.