* Avoid extra load at EOF if no pages are used

This commit is contained in:
michael 2018-07-17 07:52:46 +00:00
parent e3e8ff02b2
commit ffc2238def

View File

@ -279,6 +279,10 @@ begin
R.DoAfterRequest; // This will free request !
end;
end
else
begin
if (loAtEOF in R.LoadOptions) and (Connection.PageParam='') then
R.Success:=rrEOF
else
begin
R.FXHR.open('GET',URL,true);
@ -286,6 +290,7 @@ begin
Result:=True;
end;
end;
end;
function TRESTDataProxy.GetDataRequest(aOptions: TLoadOptions; aAfterRequest: TDataRequestEvent; aAfterLoad: TDatasetLoadEvent): TDataRequest;