WebServices and variables

hsteigstra

Member²
I am making the first steps in WebServices and have created my first server using a TOracleDataset as source, simply displaying a small list of languages. As soon as I extend the query with a variable and try to set it, I get either the error "Not all variables bound" or "Variable :LNG_ID not declared", although I have defined the variable properly. I am setting the value in the BeforeGetRecords or BeforeGetParams event of the TDatasetProvider component.
Is this a bug or am I doing something wrong? I have D6.02 and DOA 3.4.6.4

Herman Steigstra
 
The Params in a TClientDataSet will define the variables of the TOracleDataSet. Instead of defining TOracleDataSet variables you can define the TClientDataSet Params.

Alternatively you can do a Fetch Params before opening the TClientDataSet.

------------------
Marco Kalter
Allround Automations
 
I am not quite folowing you. From the Delphi documentation I learn that I have to pass the variables through the OwnerData variable in the BeforeGetRecords event. There I get the error.
The parameters set in the ClientDataSet in the client application are not passed through and the "Fetch params" does not fill in the parameters.
Any further suggestions?

Herman Steigstra
 
Back
Top