I have several scripts divided by subfolders. I want to implement a dropdown list in the Viewer only of the automations of the folder I choose. How to make ?
When I try to link a shape it only gives me the option of an automation.
I would like it to look like the example image below:
With only Visual Overview functionality, it's currently not possible to get a set of file names from the server.
However, there are some more advanced solutions that should make this possible:
Option 1: The new script output to variables
With scripting, pretty much anything is possible. So if you design a script that reads out a certain folder and put their file names into a script output, you can use that variable as the source for your dropdown items. What you need:
- A script that outputs a variable value that can be used for your dropdown and contains your script names based on a folder name parameter input.
- A way to execute this script from Visual Overview, depending on your use case this can happen at the click of a button or automatically with the execute page data.
- Your script names dropdown that uses the script output variable as its input.
Option 2: Create a protocol for it
You could also create a protocol that automatically reads out the scripts folder of your DMA and translates it to table entries. This element and table can then be used as the resource for your dropdown. What you need:
- A protocol with a table that automatically reads out the scripts of your DMA and translates them to table entries
- An element that uses this protocol and connects to your agent.
- Your script variable dropdown that uses a param placeholder to get the different table entries, along with a subscriptionfilter to filter on your chosen folder name, which should be one of your table parameters.