ExternalCursor problem

al0

Member²
Hi,

If I create dataxset based on external cursor (TQuery) and I try to edit data I receive "ORA-00903:Invalid table name)". TQuery is not obtained as cursor parameterfrom procedure, but just contain plain select from single table.
 
Originally posted by Marco Kalter:
What happens if you set the UpdatingTable property of the TOracleDataSet?
In thi9s case it works fine. Sorry, I forgot to mention it in my first letter. But it is not mentioned in documentation that it is necessary.
 
Small addition to previous post concerning documentation.

The documentation state:

Note

If the dataset is connected with an ExternalCursor, it cannot implicitly be refreshed. Use the BeforeRefresh event handler of the dataset to reopen the cursor, or prevent refresh operations.


This is not true (at least,not completely true). In case of External query build around SQL (not arount the cursor, returned from procedure) implicit refresh works fine.
 
Back
Top