Hello,
How do I create a drop down list (a dynamic one) for the input file names in a directory?
Example: Let's say that I have a directory (a regular folder on the desktop) that has various excel files. That directory keeps get updated (get new files regularly, also some of them are manually removed when needed). What I want to create is a dynamic drop down list for the files in that directory. When the user opens the Alteryx platform, he/she will just click on the that drop down list, and pick the appropriate file from the directory.
I have already checked the previous posts but could not the find the one that does the job? I guess the solution is the chained app??
here are the sample file
Any help is appreciated. Thanks
Here is what I have tried so far. It pulls the values ok , but not dynamically updated (unless I hit "Run" first)
Thanks. What do I do if I want to continue with "Book1" file and perform some analysis?? How do I see the output? (When I select Book1, no output is shown)
Hi @Serkan_Varol ,
Alteryx Designer offers Example for some tools which you can access from the menu.
So when you use a tool in Alteryx for the first time, you may want to check the example.
Example of Tree tool
That said, I attach the sample workflow for your convenience.
If you are new to creating Apps, please check the interactive lesson;
https://community.alteryx.com/t5/Interactive-Lessons/Designing-App-Interfaces/ta-p/243110
Hope this helps. Good luck.
Workflow
Interface Designer
if files are changing - this is a chained app situation. app 1 loads your directory and refreshes the file you use in your drop down., app 2 loads the drop down from the new file. I love the Tile tool but I don't see this as a use case for it.
Now - if app 2 requires a drill by directory to find the right file - yes - you'd use a Tile. The key part of the Tile tool is that you also have to create a match structure file.
Here is the exact process
1-) There is a directory (a regular folder) that consist of files (excel files). The directory is regularly updated (add/remove files). I want a drop down menu where the user can select a file (dynamically, e.g., book1_before) ). Note: The name must consist of "before" in the title
2-) Based on my selection in step 1, I want another drop down menu where only "after" files show up (with the same title (e.g., book1_after) but the name must consist of "after")
Attached is the workflow & files that kind of explains the process
This gets you to your point above. Now your question is what does the user do with the file after they've selected it. Other questions:
what happens if a user selects two files (or can they select only one)... I'd recommend thinking about the behavior you need here (and remember that your user won't be able to select an excel sheet) and then playing around with it to build your solution. you will need a batch macro. You may need a third app.
Can you mark my solution as correct?