Options

Folder Selection v1.00

AdministratorAdministrator Member, Moderator, Administrator Posts: 2,496
edited 2007-09-11 in Download section
Folder Selection v1.00
This download shows how a user can select a folder in Navision.

The code does NOT rely on external applications (automation/ocx).

http://www.mibuso.com/dlinfo.asp?FileID=541

Discuss this download here.

Comments

  • Options
    markvandermeijmarkvandermeij Member Posts: 26
    Yes, it works and it's great for people who don't want to use external tools
    two disadvantages: it will cost you an extra form and it doesn't have the standard windows look and feel (folder tree, graphics, etc.)
    Anyway, nice job...
  • Options
    Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    I agree. Nice job but users want the Windows thingy. :(
  • Options
    markvandermeijmarkvandermeij Member Posts: 26
    I saw the rating was very low, with this I don't agree. This is a nice piece of work and should be rated higher than just one star....
  • Options
    stankotrstankotr Member Posts: 1
    One little improvment.

    If I choose CD ROM drive with no disk in it, then Form left blank and further actions is not possible. So I add some code in function NavigateTo:

    NavigateTo(partxtFolder : Text[1024])
    //ST - add local variabel locOldPath::Text(1024)

    IF COPYSTR(partxtFolder, STRLEN(partxtFolder), 1) <> '\' THEN
    partxtFolder := partxtFolder + '\';

    locOldPath := Path; //>>ST - remember old path in case drive is not ready

    SETRANGE(Path, partxtFolder);

    IF FIND('-') THEN //>>ST - test if find anything - added line
    CurrForm.UPDATE(FALSE)
    ELSE //>>ST - if drive is not ready
    SETRANGE(Path, locOldPath); //>>ST - then restore old path


    Nice job.

    By, Stanko
  • Options
    DoomhammerDoomhammer Member Posts: 211
    great job, I like it =D> =D> =D>
    Martin Bokůvka, AxiomProvis
  • Options
    awarnawarn Member Posts: 261
    Great tool - I added the code for the cd drive as above, and changed it to look / feel a little more Navision Standard but the basics are GREAT.

    It doesn't look like a tree but that is OK as in my case it will be used very rarely and this wil keep me from using automatiion.

    Thanks!!

    -a
Sign In or Register to comment.