Web client - select a folder

NAVupNorth
Member Posts: 14
We're upgrading a customer to Business Central using the web client / desktop app. They had functionality in the old version to select a network directory as part of an integration. I can't find a way to replicate this in the web client since dotnet isn't supported and it looks like they'll have to manually copy and paste the path into the field. Is there any way of achieving this? Thanks in advance for any help!
0
Best Answer
-
Check this discussion: https://forum.mibuso.com/discussion/72331/how-to-selec-a-folder-in-webclient-in-navision5
Answers
-
Hello @NAVupNorth ,
If, like I gess, it is BC on-prem, you can use dotnet running on the server in the web client.
Regards.0 -
You can use UPLOADINTOSTREAM function to select a folder.
https://docs.microsoft.com/en-us/dynamics-nav/uploadintostream-function--file-0 -
Try using function [External] SelectFolderDialog(WindowTitle : Text;VAR SelectedFolder : Text) : Boolean in Codeunit 419 File Management0
-
Thanks all for the suggestions.
@ftornero - using a copy of SelectFolderDialog from the File Management codeunit, with the dotnet variables changed so they run on the server, gives this 'A call to System.Windows.Forms.FolderBrowserDialog.ShowDialog failed with this message: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application'.
@BlackTiger - this is probably going to be the route we have to go down for now, you're right it's not the biggest issue in the world
@wolfskin - I can only get the file name, without the folder path that it was selected from.
@aacnsilva - that gives 'The operation cannot complete because it uses a feature that is not supported (.NET Framework Interoperability.)' in the web client.0 -
Check this discussion: https://forum.mibuso.com/discussion/72331/how-to-selec-a-folder-in-webclient-in-navision5
-
@aacnsilva that's perfect, works a treat. Thank you very much!1
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions