I have an XDataWebClient via which WebInvoke Json data is requested. This data should be passed to an XDataWebDataSet with XDataWebDataSet.SetJsonData for display in the WebDBGrid.
procedure TfClientDatamodul.LoadOrders;
procedure OnSuccess(Response: TXDataClientResponse);
begin
XDataWebDataSetOrders.Close;
//XDataWebDataSetOrders.Connection:=NIL;
//XDataWebDataSetOrders.EntitySetName:='';
XDataWebDataSetOrders.SetJsonData(Response.Result);
XDataWebDataSetOrders.Open;
end;
begin
XDataWebClientOrders.RawInvoke('IOrderService.GetOrders', ['10/10/2018', '10/10/2019'], @OnSuccess);
end;
When I open the XDataWebDataSet I get the message:
ERROR: Connection not assigned fHelpContext::0
How can I display the data from the XDataWebClient in a WebDBGrid?
Thanks for your help