ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Dynamic R Tool Updating

ncarrillo5
5 - Atom

Hi All!

 

I am currently using the R tool to create an Alteryx Macro. I am fairly new to Macros and need help with the following:

 

I need to dynamically populate a field using the ListBox (or any other Macro that would work) using a table in the workflow. The end goal is to have the user select the table that they want to use, and then select the field that they want to use to run in the RCode. 

 

You can see the workflow below shows the general idea of my approach. I simply need the selected field name to update the "col" string in the RCode as highlighted below.

 

Any ideas or further tips help! Thanks :)

 

sample1.pngsample2.png

 

 

1 REPLY 1
NeilR
Alteryx Alumni (Retired)

Check out this article. As Dr Dan explains, you can use question constants in the R code.

Labels
Top Solution Authors