On the Server, you will get function parameters in "Param". "Result" is where you prepare the result of the function. If you have used my example and sent the DataSet in the "mydata" parameter, you can use this code to check if it arrived as expected:
if
Param.checkType('mydata',rtc_DataSet) then
To access that data, you do NOT have to assign it to a RtcMemDataSet. You can access all the dataset data in code directly through the
Param.asDataSet['mydata'] property:
var myDS:TRtcDataSet;
begin
myDS:=Param.asDataSet['mydata'];
myDS.First;
while not myDS.EOF do
begin
// use myDS properties to access the record
myDS.Next;
end;
end;
If you need the data inside a TRtcMemDataSet component, so you can use it with Data-aware components, you can assign the dataset from the "mydata" function parameter to the RtcMemDataSet1 component by using this code:
RtcMemDataSet1.asObject:=
Param.asDataSet['mydata'];
Param.Extract('mydata');For more information on working with remote functions, please check:
http://www.realthinclient.com/sf/index.php?topic=311.0Best Regards,
Danijel Tkalcec