RTC Forums

Subscription => Support => Topic started by: wbroyles on May 21, 2014, 01:19:20 PM



Title: Return additional information along with a RTCDataSet.
Post by: wbroyles on May 21, 2014, 01:19:20 PM
Is is possible to return additional information from the server along with the Dataset in a RTCFunction call?
Such as the "Table Name"?

Thanks

Wade


Title: Re: Return additional information along with a RTCDataSet.
Post by: D.Tkalcec (RTC) on May 22, 2014, 12:30:12 AM
Yes. You can send any data structure you want as a Result from a remote function call.

For example, by placing it inside a rtc record:
Code:
with Result.newRecord do
  begin
  asDataSet['data']:=myDataSet;
  asString['name']:='myTable';
  end;

Please check this FAQ topic for more examples (http://realthinclient.com/sdkarchive/index2ccb2ccb.html).

Best Regards,
Danijel Tkalcec