Common dialog

Jan_LathouwersJan_Lathouwers Member Posts: 23
Hi all,

Is it possible to make sure that a file selected through a common dialog can only come from a certain directory? Is it possible to disable the possibility to browse to another directory?

Thnx!

Jan

Comments

  • jhoekjhoek Member Posts: 216
    Not if you're using the Microsoft Common Dialog OCX, as far as I know.
    Don't waste your time fiddling with the cdlOFNNoChangeDir flag (as I did), as it will only restore the current directory to whatever it was before the dialog was shown, should the user browse to a different folder. :(
    Kind regards,

    Jan Hoek
    Product Developer
    Mprise Products B.V.
  • g_dreyerg_dreyer Member Posts: 123
    What will you use it for, selecting files for import, or do you want to export.

    If you want to import, then you can build a form based on the file table (2000000022). You can set the filter and disallow the user to change the filter using filtergroups.

    regards,
    gus
  • Jan_LathouwersJan_Lathouwers Member Posts: 23
    This works! Thnx a lot!
  • Jan_LathouwersJan_Lathouwers Member Posts: 23
    The form based on the File table isn't updated until I close the Navision client. I already tried currform.update and calcfields, but that doesn't seem to work. Any solutions?
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.