Hi,
I don't remembered if is possible to run a Object by reference and call the object's function?
For example: I am write a process report to import and process data. Report calls different XMLPort based on a setup table. The underline table for XMLPort is a temporary table and I have function to pass the record out. I am use XMLPort.IMPORT("XMLPort No.", InStream), but I can't call the function to get the record back in the process report. In the future, if there is a new format of text file, all I need to do is create a new XMLPort and update setup table. I don't want to create new xmlport variables in the report.
Thank you,
0
Answers
XMLPort.IMPORT(50000, InStream);
After this line, the instance is gone.
> BTW, I don't have development license. Everything I do is in Report and XMLPort.
In that case.. my suggestion is not the solution.
Could you show me how would you write it? Maybe I take the idea and modify it. I am using process report like codeunit.
Currently my program is process report on the page. The process report will call different xmlport based on a setup table to import different format of files.
I wish Nav can reference any Objects like RecordRef and FieldRef to tables.
https://community.dynamics.com/nav/b/olofsimrendynamicsnavblog/archive/2017/03/27/xml-buffer-and-csv-buffer-tables