Can we prompt an explorer UI from a script executed in a low code app to allow the user to select a directory of their choice? If not, what would be the best option to achiece the below:
User story:
For this case, user will want to use their all-in-one screen to allow multi select of source files or output files, which can be in different stages to restore the selected file to a directory of their choice.
Details:
From low code app the user will select multiple rows of a table displaying dom instances (each of these dom instances correspond to a phisical file in a certain directory - saved in a field of the dom instance). They will be able to multi select all of the files here and do a “Save all Files” action on all of them.
After selecting the multiple files the user can trigger a script that will prompt a file explorer UI that allows the user to select the destination path to where the files should be placed.
It's not entirely clear to me where you want to store the files. Somewhere on the agent? Or on the device of the end user?
If you want to save the files on a directory on the server, I would suggest the Treeview control. There you can inject alle the possible directories the user can save the files to from within your script. Just traverse your system paths and insert them as TreeViewItem in the control.
If you want to save it on the device of the user, then you have not much control over this. The web browser has no access to the file system of the client. This would be a severe security breach if that would be possible. It will be downloaded to the default download location defined in the browser settings, you cannot override this from the script.