Using Explorer like window to choose a path

KAdamsInCo
Member Posts: 28
I have searched the forum and found references to similar requests and they make mention of the Windows Script Host Object Model, which may do what I want, but before I go off and start researching WSHOM I wanted to know if there was a better solution to this problem or if anyone knows if this is even possible with WSHOM.
I have a field on a form that contains a directory path entered in by the user. Right now that user has to manually type in the path. I would like to have an option next to the field that launches Explorer or a 'File-Open' type dialog box where they search for the path they want, and when they find it select the path and have the path value pasted back into the field on the form.
Is there any way to do this in Nav 5?
Thanks,
Keaton
I have a field on a form that contains a directory path entered in by the user. Right now that user has to manually type in the path. I would like to have an option next to the field that launches Explorer or a 'File-Open' type dialog box where they search for the path they want, and when they find it select the path and have the path value pasted back into the field on the form.
Is there any way to do this in Nav 5?
Thanks,
Keaton
0
Answers
-
Could this be useful? : Folder SelectionRegards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi,
Yes there is a way, take a look at codeunit 412 and you can use it. Or if you have Developer Studio 2005 installed, you can also use the Common dialog OCX and use the method "ShowOpen". You need Developer Studio to be able to compile your object. It might complain about not having a developer license when developer studio is not installed.
Regards,
WillyFostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.0 -
I went with the BrowseFolder code sample and OCX control. This is the most Explorer like of the solutions that I believe users will identify with:
http://www.mibuso.com/dlinfo.asp?FileID=169
Thanks!0 -
I did post an example you may want to look at using the standard CommomDialog codeunit, and just by adding a period as the filename.
http://www.mibuso.com/forum/viewtopic.php?t=21274&highlight=
Automation and OCx is fine but upgrades new users etc: can be a problem
davidAnalyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0
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