Selecting a directory name

Mabuse
Member Posts: 3
Hit there,
in my application the user should be able to select a directory name from a window. I have tried the Common Dialog Management in the codeunit 412, but it is not the right, because I can only get filenames and not directory names.
Do you have a hint for me? Thank you very much!
Best regards
Mabuse
in my application the user should be able to select a directory name from a window. I have tried the Common Dialog Management in the codeunit 412, but it is not the right, because I can only get filenames and not directory names.
Do you have a hint for me? Thank you very much!
Best regards
Mabuse
Mit leerem Kopf nickt's sich leichter.
0
Comments
-
There is the virtual table called File. Based on Filters you set on Path field, you'll see the files and directory of that path. Take a look at that table. You'll need to create a form and add code for filter.0
-
May be this post can help you:
http://www.mibuso.com/forum/viewtopic.php?t=93290 -
Waldo wrote:May be this post can help you:
http://www.mibuso.com/forum/viewtopic.php?t=9329
Thank you, Waldo! It's a very good hint. But do you know, how I can get the focus on the opened window? After opening the folder-selecting-window, the navision application is first on focus and the user must search the folder-selecting-window, to make his selection.
Thanks everybody for helping.
Best regards
MabuseMit leerem Kopf nickt's sich leichter.0 -
Well, I don't know what is causing that.
Here is an URL of what we always use: :-$
http://www.waldo.be/modules.php?name=Downloads&d_op=getit&lid=15
I think we also got it from somewhere on Mibuso. Hope this helps you a bit further...0 -
Waldo wrote:I think we also got it from somewhere on Mibuso. Hope this helps you a bit further...
This tiny automation server retrieves the window handle for the active window. Most automation servers & custom controls that display a dialog require this value; they use it to identify the parent window for their dialog.
E.g. using the Shell object in the 'Microsoft Shell Controls And Automation' automation server, you can display a Browse for Folder dialog. Pass ActiveWindow.Handle as the first parameter of the BrowseForFolder method, and the dialog will sit on top of the Navision Attain application window.
This codeunit demonstrates how to use the 'Microsoft Shell Controls And Automation' automation server, together with my 'C/SIDE Utility Classes' to display an application-modal Browse for Folder dialog.
http://www.mibuso.com/dlinfo.asp?FileID=1690 -
Yes...good memory!!!
no .rar opener needed with the mibuso link.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