I’m currently creating a workflow where 3 different XLS files need to be imported.
Unfortunately the path to the files (mount point drive letter) is not the same for every user of the workflow.
Therefore it is necessary that the user specifies the excel file in three Excel Reader Nodes.
To make the workflow more convenient I’d like to create a component with widgets to select all necessary parameters (several datetime values and the excel files).
Unfortunately the File Chooser Widget only works with mount points - but not with local paths.
Is there a workaround - or a third party node that provides a widget for a “browse file” dialog and returns a file path?
How about File Upload Widget node? It’s a widget that works with local paths. Alternatively you can use Local File Browser Configuration node. Also works with local paths but is a configuration node rather than a widget node so if you are building workflow for WebPortal you wanna go with first one.
thanks for the quick reply! Option 1 fits to my needs because I’m not building the WF for WebPortal but for local use. So I will realize the selection for my three different date values as well via the Configuration Node and then the complete WF is ready to be setup in a single “dialogue”.
This is an interesting problem and I have a similar challenge: I want the user to select a filepath / directory individual to his / her system - not a file directly.
Though, it’s description clearly states “Allows choosing single or multiple files, workflows or directories from a remote mountpoint.”. Manually defining a path, doesn’t work. Hope anyone can shed some light onto that …
Because NOW, I need to select a local path on a remote machine (changed use case).
So basically I have a KNIME Business Hub workflow, where I need to select a directory instead of a single file. It should run in a data app.
I tried the File Chooser Widget without any mountpoint settings and it basically crashes the workflow (so it doesn’t execute at all).
I also tried the File Upload Widget node and this only allows me to select a single file (not multiple ones).
Would be glad to see something (probably what @mwiegand requested), that spits out a directory path which then - no matter if local or remotely on the Business Hub - can be fed into something like a List Files/Folders node which in return then can feed a loop to read in all relevant files.
Not sure if this solves your request entirely, but we snuck in a really really nice node with 5.4. The multiple file upload widget (Labs). With that you can at least upload multiple files and get the paths to the new locations of these files. It might still have some quirks which is why it was released with the labs label, but you might want to give it a try. Would be happy to hear your feedback