Directory Path

kvb
Member Posts: 107
Hi all
I have a Setup Form. At this form there is a field named "Export path".
This is a path where i will export some information by using dataports.
The name of file will be generated automatically. And the question is:
Is it possible to make some kind of "Directory choose dialog"?
I know about 412 CODEUNIT, but it`s not quite the right solution i think
I have a Setup Form. At this form there is a field named "Export path".
This is a path where i will export some information by using dataports.
The name of file will be generated automatically. And the question is:
Is it possible to make some kind of "Directory choose dialog"?
I know about 412 CODEUNIT, but it`s not quite the right solution i think
0
Comments
-
Do you know about this download, called "Browse for folder": http://www.mibuso.com/dlinfo.asp?FileID=169No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
it works, but...
Automation...
anyway, thanks0 -
we are using this silly way:
we use COMDLG32 for locating some file from required directory and then we delete file name, so we get only path for directory.
this is not elegant solution, but when you not like Automation, it can be sufficient.var: ocxCOMDLG32, OCX, Microsoft Common Dialog Control, version 6.0 OnAssistEdit of control: WITH ocxCOMDLG32 DO BEGIN DialogTitle := 'title of your dialog'; Filter := 'file type1 (*.OUT)|*.out|file type2 (*.txt)|*.txt|all files (*.*)|*.*'; ShowOpen; IF FileName <> '' THEN txtfilename := FileName; END;
then delete file name and you will get path :-)
as I said, very silly.Martin Bokůvka, AxiomProvis0 -
Luc Van Dyck wrote:Do you know about this download, called "Browse for folder": http://www.mibuso.com/dlinfo.asp?FileID=169
I needed this stuff in these days and implemented well... but... every time the Shell Window is show up in the background and not in focus! :roll:
This focused to Windows system but not to Navision and the user cannot see that lookup Shell window!
I use this:SelectedFolder := WindowsShell.BrowseForFolder(0,'Title',1,'');
Where the 0 meanings the Hwnd but how can I set, the Navision is the parent window? :-s
Thanks for the help!0 -
Asallai wrote:Where the 0 meanings the Hwnd but how can I set, the Navision is the parent window? :-s
Thanks for the help!Timo Lässer
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]0 -
Thanks it is help, but I would like to be avoid to load a dll for this function
I know it is must be loaded .
Thank you!0 -
You could create a form based on the table File.
To only show directories place a filter on the field "Is a File" with the value 'FALSE'.
You do need to do some programming around it all to make it work, but as you wanted it saves you loading a dll.0
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