How to get file path properties in a form
sabzam
Member Posts: 1,149
Hi Everyone,
Is there a way how to achieve the same results as a dataport but through a form? What I mean is having the option to search in the harddisk for the file to import/export?
Thanks
Is there a way how to achieve the same results as a dataport but through a form? What I mean is having the option to search in the harddisk for the file to import/export?
Thanks
0
Answers
-
take a look into CU 412 "Common Dialog Management" function OpenFile().
RegardsDo you make it right, it works too!0 -
HI,
Thanks for your immediate reply. By any chance do you know of a form or a dataport from which I can have a look at how this coduenit has been used?
Regards0 -
for example form Create Interaction (5077) or form Implementation (8600)
RegardsDo you make it right, it works too!0 -
Look at the Request form of report 81
In the OnAssistEdit trigger of the textbox filename:FileName := CommonDialogMgt.OpenFile(Text006,'',2,'',0);
0 -
10x alot.............. seems that it works0
-
Hi,
The following worked properly
FileName := CommonDialogMgt.OpenFile(Text006,'',2,'',0);
But now it is giving me the following error "The operating system cannot find the drive and directory specified for the file". What I need is to import a csv file and fill in a table which before was being carried out by a dataport.
Do you think you can help me on this?
Regards0 -
is there a reason you don't want to use a dataport that already works?0
-
Problem solved by:
Editing CDU 412:
Created text constant with extension .csv and coding added an option to the default file types
Form
Using the above given code & adding the CurrDataport.Filename := ImportFileName;
where ImportFileName is a user created variable to store the file name
Regards & Thanks to all for the help0 -
[The use of [SOLVED] in the Topic Title is no longer supported. Please edit the first message in the thread and use the field Attribute (below the Subject-field) to put a green checkmark next to the Topic Title]0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
- 324 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
