Hi
I want to export XMLPort's data into a text variable after applying some filters. Currently I have this:
procedure GetJobTasksList(): Text
var
JobTask : Record "Job Task"; tempBlob: record TempBlob; IStream: InStream; Ostream: OutStream; StreamText: text;
JTXmlport: Xmlport 50000; begin TempBlob.Blob.CreateOutStream(Ostream);
//JobTask.Setfilter(/*filters*/)
//JTXmlPort.SetTableView(JobTask) Xmlport.Export(50000, Ostream); tempblob.blob.CreateInStream(IStream); tempblob.CalcFields(blob); StreamText := Base64Convert.StreamToBase64String(IStream); exit(StreamText); end;