Skip to main content
Question

How to open Folder Dialog in Acumatica?


aaghaei
Captain II
Forum|alt.badge.img+10

Hello everyone,

 

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?

11 replies

Patrick Chen
Jr Varsity III
Forum|alt.badge.img+2
  • Jr Varsity III
  • 51 replies
  • February 14, 2023

Are you hoping to browse the Application server where Acumatica is running or are you hoping to upload a file from your local computer?


aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • 1203 replies
  • February 14, 2023

I want to open local computer drives to “save to” / “upload from” (mostly interested in browsing local folders to save to files)


Patrick Chen
Jr Varsity III
Forum|alt.badge.img+2
  • Jr Varsity III
  • 51 replies
  • February 14, 2023

darylbowman
Captain II
Forum|alt.badge.img+13

I find it funny that @Patrick Chen is a ‘Freshman’ 😁

Cheers mate!


aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • 1203 replies
  • February 14, 2023

@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.


Patrick Chen
Jr Varsity III
Forum|alt.badge.img+2
  • Jr Varsity III
  • 51 replies
  • February 14, 2023

haha, just fashionably late really :)


aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • 1203 replies
  • February 14, 2023

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


aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • 1203 replies
  • March 1, 2023

@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.

 

 


Patrick Chen
Jr Varsity III
Forum|alt.badge.img+2
  • Jr Varsity III
  • 51 replies
  • March 1, 2023

@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.


aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • 1203 replies
  • March 1, 2023

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.


aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • 1203 replies
  • March 6, 2023

Circulating to top that hopefully someone can assist with opening folder browser dialog.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings