My client is having a customized version of Navision 3.60. Requirement is to create a tool or something like that to import/export XML files into Navision.
Now this can be done easily in Navision 4.0 and higher but in Navision 3.60, I have no idea how to even proceed.
Yes, client is not on support and upgrade is out of the scene because of cost & complexity involved.
Anyways, after doing some research, I have come to the following: -
Solution Approaches:
In Navision, Version 4.0 and higher, there exists a technology named “XMLPorts”. With this technology, it is very simple and easy to import/export documents or files in XML format. Approach would be to build/replicate the same technology in Navision Version 3.60.
a. Problem is only that it is a huge job because there are some DLL files, necessary for running “XMLPort” functionality which are difficult to replicate for Navision 3.60
Approach would be to build a technology similar to “XMLPort” in Navision Version 3.60 from scratch. This will allow customizations as per user requirements.
a. Problem is it will take longer time as it is to be built from scratch. Hell lot of time!
b. It involves use of technology like XML DOM which itself is quite complex but achievable.
Approach would be to use the existing “Import Excel” tool made in the client’s current database. In this, coming XML files would be first converted into CSV format files and then using the existing tool, would be imported into Navision system.
a. Problem is converting XML files to CSV format files.
b. Also, this “Import Excel” tool is a very basic tool. So, some enhancements would also be done in this tool itself.
Considering all the approaches while taking up a task, to select the best and most economical approach is the key.
If the XMLPorts work as part of a technical upgrade (I have not tried) then this is not really a complex issue. Technical upgrades take a lot lot less time than a full upgrade. Cost of license? Well thats a different issue that I could not comment on.
Hello,
It seems to me that there is a simpler approach. There are tools along XML technologies allowing to take XML files and to transform them into flat files (txt, csv, fixed length fields, …). One of this technologie is XLST. You could have a look at http://www.w3schools.com/xsl/default.asp to get a few basics about it.
I used it once to flatten a quite complex xml file in something less tricky that I then imported using dataport. The XSLT is not so intuitive, but when you get it, you can write all the needed code in just a few lines and have a nice txt or csv file.