Selecting a directory name

MabuseMabuse 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
Mit leerem Kopf nickt's sich leichter.

Comments

  • ara3nara3n Member Posts: 9,257
    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.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • WaldoWaldo Member Posts: 3,412
    May be this post can help you:
    http://www.mibuso.com/forum/viewtopic.php?t=9329

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • MabuseMabuse Member Posts: 3
    Waldo wrote:

    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

    Mabuse
    Mit leerem Kopf nickt's sich leichter.
  • WaldoWaldo Member Posts: 3,412
    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...

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • SavatageSavatage Member Posts: 7,142
    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=169
  • WaldoWaldo Member Posts: 3,412
    Like I said ...

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • SavatageSavatage Member Posts: 7,142
    Yes...good memory!!!

    no .rar opener needed with the mibuso link. :D
Sign In or Register to comment.