Xmlport In Navision 4.0

Angelo
Member Posts: 180
I think documentation of xmlport in Navision is not complete (like w1w1adg.pdf). Anyone have another documentation for the object? 
I want to export to XML via XMLport. for example, Exporting All Sales Header and its Line. But when I tried it, There is only make 1 document no. of sales header in my xml file. Any one can help me how to export all sales header (all document No.)? [-o<
In XMLport is not like Dataport and Report that before printing or exporting, we can filter it first. How About XMLport?can we do that? :-k
Please advise.....
regards,
Angelo

I want to export to XML via XMLport. for example, Exporting All Sales Header and its Line. But when I tried it, There is only make 1 document no. of sales header in my xml file. Any one can help me how to export all sales header (all document No.)? [-o<
In XMLport is not like Dataport and Report that before printing or exporting, we can filter it first. How About XMLport?can we do that? :-k
Please advise.....
regards,
Angelo
0
Comments
-
Look into existing xmlports to see, how are designed. When you are running the xmlport, you can past record on which is runned, or you can setview for the table... but I have no experiences now with XML ports... it is only theoreticaly based...0
-
Please more specific...... [-o<
We know that XML port is very new in Navision but I disappoint because documentation is very limited.0 -
For me it is new too... 8)
example:
in XMLPort 8002 is structure:Item - Table - T27 No. - Field- No. Description - Field - Description . . . and one XML-Event Inventory Status
This XML port is called in this way:RecRef.SETTABLE(Item); Item.SETRECFILTER; ItemXML.SETTABLEVIEW(Item); ItemXML."Inventory Status";
But I don't know, what it is the XML-Event and where is the OutStream into which is the XML sent...0 -
...how to export all sales header...
So, to export multiple Sales Headers/Sales Lines, you might use the following indentation scheme:SalesDocuments -- Text .SalesDocument -- Table(Sales Header) ..SalesHeader -- Text ...<Sales Header Fields Here>... ..SalesLines -- Text ...SalesLine -- Table(Sales Line) ....<Sales Line Fields Here>...
Then, to run the XMLPort, and possibly to apply filters to the records to export, look at the example in Form 605 - IC Chart of Accounts - procedure 'ExportToXML'.
Your export code might look something like this:// create the output file, and get its outstream... MyOutputFile.CREATE(MyOutputFileName); MyOutputFile.CREATEOUTSTREAM(MyOutputStream); // set appropriate filters... MySalesHeader.SETRANGE("Document Type",...); MySalesHeader.SETRANGE("No.",...); MySalesDocsXMLPort.SETTABLEVIEW(MySalesHeader); // set the xml port destination, and run the xml port... MySalesDocsXMLPort.SETDESTINATION(MyOutputStream); MySalesDocsXMLPort.EXPORT; // all done... MyOutputFile.CLOSE;
0 -
Thank you of you all....
SETDESTINATION, SETSOURCE,SETRESPONSE,GETRESPONS function is not found in help. Do anyone know about the using of the functions?
if eveybody have documentation about XML, can share it in this forum?
regards,
Martheus0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions