Now you can use other automation to actually populate the out and instreams. Read the outstream from a big text, and use the outstream as the source for your XMLPort.
You would use CREATEOUTSTREAM only for outstreams, not instreams. For that you would use CREATEINSTREAM. By using the TempBlob table, when you read the instream into the Blob field, you can set its value from an instream, and use it to create an outstream, based on the same field.
Answers
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
But I have got a text variable.
lets say "txtA" being passed from some other source to a function
Now I want to load it into a stream to pass it xml port.
so what needs to be done.
txtA.CREATEINSTREAM(ostream);
bstr.READ(istream);
right?
You would use CREATEOUTSTREAM only for outstreams, not instreams. For that you would use CREATEINSTREAM. By using the TempBlob table, when you read the instream into the Blob field, you can set its value from an instream, and use it to create an outstream, based on the same field.
RIS Plus, LLC
I am just new to nav cal coding...
ProcessCustomers(InputXML : BigText) status : Boolean
tempRec.Blob.CREATEINSTREAM(XMLInStream);
InputXML.READ(XMLInStream);
XMLPORT.IMPORT(123456751,XMLInStream);
status := TRUE;
not getting the data into the table through XMLPORT.
Am i still doing any thing wrong?
please advise.
regards,
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
regards,
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.