Folder Browse is not supported for apps shared in the Analytics Gallery / Server, so we need a solution similar to Folder Browse for selecting folders. By using Tree Tool, we can accomplish this and can restrict the user’s access to a specific directory and get an organized, hierarchical data structure for folder selection.
Analytical App Workflow


Step-By-Step Instructions:
- Setting up Tree Tool:
- Drag and Drop the Tree Tool onto the Canvas.
- In the configuration window select the ’Single Selection’ check box.
- Add the Directory path to the Root Path.
- Setting up Action Tool (To input files):
- Drag and Drop the Action Tool onto the Canvas.
- Connect the Tree Tool to the Action Tool.
- In the configuration window select the action type as ‘Update Value with Formula’.
- In the Value or Attribute to Update select the Directory path.
- Add the formula: FileGetDir([#1]).
- Setting up Directory Tool:
- Drag and Drop the Directory Tool onto the Canvas.
- Connect the Action Tool to the Directory Tool.
- In the configuration window set up the connection to the folder.
- Setting up Action Tool (To output files):
- Drag and Drop the Action Tool onto the Canvas.
- Connect the Tree Tool to the Action Tool.
- In the configuration window select the action type as ‘Update Value with Formula’.
- In the Value or Attribute to Update select: Directory - value.
- Add the formula: FileGetDir([#1])+’Directory\Subfolder’+’FileName|||SheetName’.
- Setting up Output Tool:
- Drag and Drop the Output Tool onto the Canvas.
- Connect the Action Tool to the Output Tool.
- In the configuration window set up the connection to the file.
- Setting up Text Input Tool:
- Drag and Drop the Text Tool onto the Canvas.
- Connect the Text Tool to the Output Tool.
- Add data.
- Connect Browse tool to Directory Tool.
When the user runs the analytic app, they need to select one file from the folder that is required.
Browse Tool App Results

Thanks,
Dhrishya