Hi i've created a service on the server by this code below. See the funcion 'DoQuery' ... I want to came back to client the result records of query that i pass by parameters... Its possible ? i declared result as TJSObject but i'm not sure !!! side client how get result records ?
Thank you
type
[ServiceContract]
IMyQueryService = interface(IInvokable)
['{23DB555A-7436-430E-9D55-B6E375B8EE11}']
[HttpGet] function Sum(A, B: double): double;
// By default, any service operation responds to (is invoked by) a POST request from the client.
function EchoString(Value: string): string;
end;
[ServiceImplementation]
TMyQueryService = class(TInterfacedObject, IMyQueryService)
private
function DoQuery(TipoQry,QryStr:String):TJSObject;
function EchoString(Value: string): string;
end;
implementation
uses d_DM0, FDUnit;
function DoQuery(TipoQry,QryStr:String):TJSObject;
begin
DoSelectDst(DM0.dstData1,
'SELECT Azione, Data_Ora, TDS_Reg, Info_Cli FROM SMS_Act WHERE TDS_Reg > 200');
Result := Nil;
end;