I'm trying to create a macro which users can use to upload a file to a directory in our hdfs using an output tool but I'm having a few problems.
1) File format: I want the user to be able to choose between 2 file formats, csv or avro. I know how to have this as an option in the macro config using a dropdown interface tool but I don't know how to feedback this fully into the output tool. A single selection of csv or avro should update 3 parts of the tool; the file type, the file format number and the file format name (see below). How can I do this?
2) Dynamic file path: I'm currently using a dropdown for folder, a dropdown for subfolder and then a text box for file name. These then replace the folder, subfolder and filepath using an action tool each. This works but isn't ideal as the filepath may not match this format. If there's another subfolder or 1 fewer then my macro doesn't account for this. Also, currently selecting a folder won't filter down the subfolder list so a user may end up selecting an area which doesn't exist. Is there a way of doing this more dynamically?
Thanks for your help!