Getting filename parameter to XMLport

ccbryan63
Member Posts: 115
This seems like it should be simple... but I'm needing some help.
In 2009, I have an XMLport (import purchase invoices) that is to run from an RTC page. In test environment it runs properly: Page Action calls codeunit that runs XMLPort. For testing, the codeunit specifies the import file.
My question is: How do I allow the user to enter the name of the file to be imported? Presumably in the request page of the XMLPort, and if someone could give me an explanation of how I would be very appreciative.
I also have considered using a textbox on a form/Page, but I don't know how to pass a parameter to my codeunit...? Again, seems like a simple task but I don't spend enough time in NAV perhaps.
Thanks very much for any help...
Chandler
In 2009, I have an XMLport (import purchase invoices) that is to run from an RTC page. In test environment it runs properly: Page Action calls codeunit that runs XMLPort. For testing, the codeunit specifies the import file.
My question is: How do I allow the user to enter the name of the file to be imported? Presumably in the request page of the XMLPort, and if someone could give me an explanation of how I would be very appreciative.
I also have considered using a textbox on a form/Page, but I don't know how to pass a parameter to my codeunit...? Again, seems like a simple task but I don't spend enough time in NAV perhaps.
Thanks very much for any help...
Chandler
0
Answers
-
I personally like to call "Common Dialog Management" codeunit on the "OnPreXMLPort" trigger and set it there, unless there is a need to filter in which case I add a new text variable to the request form/page and attach Common Dialog Management to the assist edit of that field.
Give it a try see if it works for you.0 -
I just finished with a dataport to import a deposits file. In the Properties page of the XMLPort itself (not any of the specific Nodes), there is a property called: UseRequestForm. When set to true, you can prompt the user for specific parameters, or if not needed, before the file imports a directory dialog opens and allows them to choose the specific file they wish to import.
I also have the fileName property set to <undefined>.
Hope that helps!0 -
Thanks Tony, that was exactly what I needed.
I had searched NAV help for "Dialog" but all I found was the beep function.
Chandler0
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