file browsing in navision

Vineeth.RVineeth.R Member Posts: 121
dear friends

is it possible in navision to browse thru all the locations in our hard disk to find a file, like if i want to open/select a file from my drive then can i write coding for that in a buttons onpush to open a window like browser screen and search for my file and select it??? please provide some coding hints or similar form/report ID in our standard navision.

thanks
Vineeth
Thanks and Regards
Vineeth.R

Comments

  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    There are several ways to finde a solution for this. It depends on what you exactly want to do and how much effort you want to invest. Use the search function.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • Vineeth.RVineeth.R Member Posts: 121
    hi

    Dou know any form or report which use this function to browse thru our hard disk to find a file or picture...if so pls tell.. I could not find the function serach in help. please provide a sample coding or eg for this.

    thanks

    There are several ways to finde a solution for this. It depends on what you exactly want to do and how much effort you want to invest. Use the search function.
    Thanks and Regards
    Vineeth.R
  • garakgarak Member Posts: 3,263
    You can use the virtual Table "FILE" like:
    File.setrange(Path,'C:\');
    

    Path Is a file Name
    C:\ No AltNaviDB <-- Is a folder
    C:\ No ATI
    C:\ No BCFONT
    C:\ No Binaries
    C:\ No C5450n
    C:\ No Data
    C:\ YE AUTOEXEC.BAT <-- is a file
    C:\ YE AUTORUN.inf
    C:\ YE bootfont.bin

    so you can loop through the folders setrange(Path,Path+NameOfFolder)
    and then you check, if there exist you needed file.

    Also possible, you can use WSH -> FileSystemObject or WSH -> Files

    Regards
    Do you make it right, it works too!
  • garakgarak Member Posts: 3,263
    this was the solution for auto finding.
    If you need, that the user must select a file, you can use codeunit 412 (Common Dialog Management)
    Do you make it right, it works too!
  • Vineeth.RVineeth.R Member Posts: 121
    thanks garak.... i used CU412.
    garak wrote:
    this was the solution for auto finding.
    If you need, that the user must select a file, you can use codeunit 412 (Common Dialog Management)
    Thanks and Regards
    Vineeth.R
  • garakgarak Member Posts: 3,263
    Please write [solved] in your Subject title of your first post.

    Thanks
    Do you make it right, it works too!
Sign In or Register to comment.