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?
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.
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.
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?
Comments
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.
Jan Hoek
Product Developer
Mprise Products B.V.
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
http://www.mibuso.com/forum/viewtopic.php?t=1672
http://www.mibuso.com/forum/viewtopic.php?t=4555