I was wondering how we can opened Folder Browser Dialog in Acumatica. It doesn't seem to be able to use standard C# File/Folder browsing code. For example I would do something like:
string dialogPath = @"C:\Temp"; FolderBrowserDialog folderDialog = new FolderBrowserDialog(); DialogResult result = folderDialog.ShowDialog(); if (result == DialogResult.OK) { dialogPath = folderDialog.SelectedPath; }
But apparently Acumatica doesn’t like it and throws exception. Any thoughts on how Acumatica opens the Folder Browser dialog?
Page 1 / 1
Are you hoping to browse the Application server where Acumatica is running or are you hoping to upload a file from your local computer?
I want to open local computer drives to “save to” / “upload from” (mostly interested in browsing local folders to save to files)
I find it funny that @Patrick Chen is a ‘Freshman’
Cheers mate!
@Patrick Chen@darylbowman
In Persian mythology, when a phoenix ages, burns itself but from its ashes a new phoenix rises to live for another 300 years with all the knowledge and experience the old bird had gained. I guess @Patrick Chen is the new phoenix although Freshman but experienced.
haha, just fashionably late really :)
I will test the Stackoveflow suggestion to see how it works hopefully in next few days as temporarily have postponed that piece of the project
@Patrick Chen@darylbowman
I had a chance to test the method in the suggested link but it opens the file attach Dialog. See the below snip. What I need is to brows a folder ,select it and then save my file there.
@aaghaei I think you’re bumping up against the limits of the architecture here. Browsers are deliberately isolated from the local filesystem in order to prevent scripting attacks. To the best of my knowledge, this is not possible.
I am not so sure I am following @Patrick Chen . In Acumatica when we download attachments, we can browse folders, navigate where we want and save files there. There definitely is something but I can not find it and makes me furious.
Circulating to top that hopefully someone can assist with opening folder browser dialog.