microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
747 stars 245 forks source link

OpenFileDialog in FileManagement Codeunit #403

Closed GreatScott000 closed 7 years ago

GreatScott000 commented 7 years ago

Related to #220. We have used this to just get the name of a file to reference we don't actually want to upload the file. The OpenFileDialog returns the filename selected, which is all we need. Do you have a alternative suggestions? We can't use the File table either.

The scenario we do this is we have a setup table to point to a document template that a user later adds links to a page and fills out.

The dialog allows for a nice user interface rather than just an empty textbox and the user has to enter the correct path and name to the file.

StanislawStempin commented 7 years ago

The OpenFileDialog procedure has been made available for Extension development. However, note that the functionality will not work in the web client since it cannot run client side .NET