How to Select Data Specific Fields to Retain in an App [Macro] for Front-filling.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Alteryx Community,
I have been trying to build an app that where I front-fill values if they are null for specific columns/fields that I select but after many attempts have failed to do so.
This is what my workflow looks like. The python part that front fills works fine, but it front fills for all columns, not specifically selected ones.
I would like it to be flexible, such that I can select a column regardless of what name it had and I would also like to be able to tick off multiple columns that my Python code gets applied to so they get front filled. So, perhaps drop down menu is not the correct interface tool.
Problem 1:
The follow screenshot is what I have in my drop down tool, but as I am only able to select the column that were in the text input file I used to create the macro, it does not dynamically adapt to the file column names.
Problem 2:
Also, it does not only retain the column I select in the dropdown menu, but retains all columns.
Problem 3:
Using the drop down menu only allow me to select one column.
Hope you can help me. Please find attached my app workflow. Thanks for the feedback/support.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @emil_pwc
I think i've got it to do what you're looking for. As you say it's an app i've changed it to an app, and changed your input over to a List Box tool, to allow for multiple selections.
The Action tool has been changed to 'Update Select with Multi-select Listbox', and i've changed your inputs/outputs back to non macro ones. When you run it as an app it seems to work correctly and the user can select fields as required, plus it picks up any changes to the input.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi DavidSkaife,
Thanks a lot for your input. I am now able to achieve what I wanted by changing the interface tool to a "List Box" and changing the action tool to "Update Select with multi-select ListBox" as well as unticking the "Show Field Map" for the Macro Input tool.
I suppose what I originally wanted was a macro with a list box input with no dropdown menus only tick boxes. So apologies for my description being off as I mentioned an app. Nevertheless, your take was very helpful.
