Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

User Input update random sample tool

Processcreator
7 - Meteor

Hi All,

I am trying to have it so a user inputs a number which updates the random sample tool value for the number of samples. I thought this would be rather straight forward but for some reason the value being input isn't changing the tool. Could anyone please assist?

2019-02-12_19-24-47.jpg2019-02-12_19-27-10.jpg

5 REPLIES 5
DavidP
17 - Castor
17 - Castor

Ok, so what I think is happening is that by adding the Text box tool you're converting it to an App, but by pressing the run button, you're running the app as a workflow, which means it uses the default value that is set for the Text Box tool, i.e. 10.

 

If you run it as an App by clicking on the wand and opening the app interface, it will work, but only if you include something that can show you the results, like a browse tool. So add a browse tool, the go to the Interface Designer Settings as shown below and tick the box that tells the app that you want to display the results of the browse tool after the app is run.

 

random sample 2.png

 

The when you run the app, the results look like this:

 

random sample.png

 

Sample app attached.

Processcreator
7 - Meteor

Hi Thank you for your response. 

 

I tried that exact setup but it isn't updating the sample number.

 

I could not utilize your sample - its says your using a different version of Alteryx.

 

I have attached the setup as you provided for reference.

 

Thanks

DavidP
17 - Castor
17 - Castor

Your Action Tool was set to update the Number percentage, I changed it to update the sample number.

 

Try it now. I changed the version back to 2018.3

DavidP
17 - Castor
17 - Castor

random action tool.png

Phill
8 - Asteroid

Hi David, 

 

I'm attempting to do something pretty similar here. I seemed very simple but I'm not getting anything form the output. 

 

I have data set coming in to a random sample tool which I have set based on a %. I connected an action tool and Numeric Up Down (gave a go with a text tool also) set my parameters and ran it with the wand. Option to specify the % pops up fine but when it runs I get no output. 

 

I've attached an example of what I'm doing with dummy data.

 

Hope you can point me in the right direction.

 

Thanks, 

 

Phill