Hi,
Delphi 2007 for Win 32. Oracle 7.3.
I'm trying to use a TOraStoredProc with one string input and one cursor input/output parameter.
When only the TOraSession and TOraStoredProc are used I am able to "Activate" the stored proc at design time.
When I connect a TDataSetProvider and a TClientDataSet I'm only able to "Activate" the client data set ONCE.
The second time it errors: "ORA-01008 not all variables bound".
Plus: the TORAStoredProc now only lists one (cursor) parameter.
Plus: the OraStoredProc dialog is now disabled - I cannot change any of parameter values (the input one).
Any ideas?
-zarko
Lost Params: TOraStoredProc + TClientDataSet over TDataSetProvider
When you open TClientDataSet component, it copies output and input/output parameters to its Params property. But input parameters are not copied. When you open the TClientDataSet component next time, the parameters from its Param property are used. As a result the problem occurs.
You should clear Params property of TClientDataSet each time before you open it.
You should clear Params property of TClientDataSet each time before you open it.