Picking a directory

dennis_decoenedennis_decoene Member Posts: 13
edited 2004-06-11 in Navision Attain
Hi,

I would like to be able to click an assistedit button and a form should open, allowing the selection of a directory path.

I know there is an example of this on this site, but it uses an additional automation server to get the windows handle. It is not desirable to use components that are not windows/navision standard.

Is there another way to get the handle of the navision window?

Dennis
I don't need PGP, my handwriting suffices.

Comments

  • NickNick Member Posts: 8
    I've tried to do this in the past and looked for a standard windows control (similar to the Common Dialog Control) for picking directories. I couldnt find one so had to write one myself.
  • janpieterjanpieter Member Posts: 298
    I don't understand.

    You can use the "Common Dialog Control" to pick a directory.
    Where would you need a window handle for?

    Have a look at CodeUnit 412. That will get you further.

    If you realy need a window handle this is done with API calls. Since navision c/side doesn't support this you will need to wrap this API call in a ActiveX DLL. I'm affraid then there is no way to get the window handle in navision using components that are on every windows machine.
    In a world without Borders or Fences, who needs Windows and Gates?
  • dennis_decoenedennis_decoene Member Posts: 13
    :cry:

    Bummer... The codeunit you mention is good for pikcing a file. Not for paths.

    Dennis
    I don't need PGP, my handwriting suffices.
  • janpieterjanpieter Member Posts: 298
    Ok, sorry missed that part.

    Don't know if there is something simular but then for picking a path.
    In a world without Borders or Fences, who needs Windows and Gates?
  • RobertMoRobertMo Member Posts: 484
    you can allow picking any file and just use the path from whole filename...
               ®obi           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  • dennis_decoenedennis_decoene Member Posts: 13
    Possible, sure. Only problem is the directory is empty most of the time...
    I don't need PGP, my handwriting suffices.
  • janpieterjanpieter Member Posts: 298
    And i think your customer would question your professionalism when you come up with that kind of sollution :?
    In a world without Borders or Fences, who needs Windows and Gates?
  • RobertMoRobertMo Member Posts: 484
    Possible, sure. Only problem is the directory is empty most of the time...
    u r right.
    (an it also looks strange)
               ®obi           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Sign In or Register to comment.