Alteryx Designer Desktop Discussions

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

Updating a FROM Clause using Input Data Tool

aschoen
5 - Atom

I am in the process of building out a workflow that will pull data in from a database to do general profiling of that data. Currently, I am trying to use an analytical app that has a text box to update the FROM clause in the Input Data tool. This would specify which table to bring in data from the database. However, I cannot find a way to make the connection and return data from the database. Is it possible to use interface tools to update the FROM clause in Input Data tools?

 

Thanks

2 REPLIES 2
DataNath
17 - Castor

Hey @aschoen, if you set up your initial workflow with a simple Select * query like so:

 

DataNath_0-1683646146279.png

 

In your Text Box's Action tool configuration, you can select the 'File - Value=' part and hit 'Replace a specific string' and then reduce it so it's only the table name:

 

DataNath_4-1683646372922.png

 

Now if I run the app typing in the orders table, I get that:

 

DataNath_2-1683646251340.png

 

Whereas if I type in superstore_people, I get that table, as the query is being updated with this value:

 

DataNath_3-1683646280036.png

 

Hope this helps!

aschoen
5 - Atom

This seems to have worked. Thank you

Labels