‎10-18-2017 07:25 AM
Hello,
By configuration, the 'Path File Control' in labview allows to select a folder but without showing the files inside (option folders).
In changing the configuration to option 'Files and Folder', we can see the files insides the folder but the button 'open' appears in additon to 'select folder' button.
In my application, only a folder must be selected by the user.
For the choice of the folder, I would like that the user can see files inside it.
So I try to realize a function with just a 'select folder' button and showing file inside it.
Please could someone help me to realize that ? Thanks a lot, Daniel.
Solved! Go to Solution.
‎10-18-2017 07:35 AM
Hi Daniel,
So I try to realize a function with just a 'select folder' button and showing file inside it.
Build your own VI to select a folder.
- Use the ListFolder function to get the content of folders.
- Display the content in a listbox.
- Have the user select an entry in the listbox. Detect double-clicks to go into the next folder…
‎10-18-2017 08:09 AM
hi
I tried with the folder/file/file or folder options and it shows the files(LV2011) .
‎10-18-2017 10:47 AM
Thanks for your suggestion.
Is it possible to realize the function using a WIndows file explorer like the File Path Control.
Maybe using the .NET pallette ?
BR, Daniel.
‎10-18-2017 10:56 AM - edited ‎10-18-2017 11:01 AM
I configure the dialog for "files or folders" (with optional pattern) and act as follows in the code:
Very little code needed!
‎10-18-2017 11:26 AM
Thanks.
Can you explain how you check if the user select a file name or a path (folder)?
Your method is easy to implement but use 2 buttoms in the file explorer for the same objective....not very 'smart'.... I would prefer another method.
BR, Daniel.
‎10-18-2017 11:50 AM
@daniel_blanzat wrote:
Thanks.
Can you explain how you check if the user select a file name or a path (folder)?
Use this function. It has a boolean "directory" output that lets you decide how to proceed. trivial!
@daniel_blanzat wrote:
Your method is easy to implement but use 2 buttoms in the file explorer for the same objective....not very 'smart'.... I would prefer another method.
It is very "smart" because it allows the user multiple ways to effectively interact with the dialog (press "current folder", select a file, double-click a file, etc.). Many user are not very familiar with the "current folder" button and such.