I am trying to get the folder path of a file (e.g. "C:\folder\file.exe") in Dynamics NAV/CAL. It is trivial to do by using the standard Microsoft Codeunit 419 - File Management, as OpenFolderDialog does exactly that.
Unfortunately this uses DotNet which does not work in the Webclient (specifically System.Windows.Forms.OpenFileDialog). Any ideas how that functionality can be implemented in a way that works in the Webclient (preferably without a Javascript Addin, but if there is nothing else, I would consider that, too.)
0
Answers
Dotnet does work server side!
But as the path needs to be UNC, if to be handled by NAS, then good luck with learning the users that.
Think you need JavaScript for this.
Instead:
I would make a inbound folder and let the user choose the file from there. The service tier can list files in this folder via temp table. This folder could be a network drive. NAS could move or delete the file when handled.
Also check out how MS does in WebClient with Incoming Documents, maybe something there can be used.