Hi there
Is it possible to serialize an Aurelius DataSet? This code below works?
function TBsItensConferenciaCegaLocal.ConferirColeta: Integer;
var
wproxy: TDaoLvEntradasClient;
wResult: TFDJsonDataSets;
Serializer: TDataSnapJsonSerializer;
JsonValue: TJsonValue;
begin
Serializer := TDataSnapJsonSerializer.Create;
wproxy:=TDaoLvEntradasClient.Create(dm.GetConnection);
try
// this code works?
wproxy.ConferirColeta(Serializer.ToJson(AureliusDataSet));
//
finally
wproxy.Free;
Serializer.Free;
end;
end;
wlandgraf
(Wagner Landgraf)
January 27, 2020, 6:23pm
2
No, you cannot serialize an AureliusDataset.
It doesn't make much sense anyway, since AureliusDataset is a wrapper for objects - either a list, or a single object. You could simply serialize the underlying objects.
Hi,
Right, and how do I convert a TAureliusDataSet to a Underlying ObjectList?Or doesn't make sense?
wlandgraf
(Wagner Landgraf)
February 2, 2020, 4:16pm
4
It's the opposite: at some point you have provided the objects for the AureliusDataset. Those are the objects you can serialize.
How did you tell AureliusDataset which data is should display? Do you have some code?