Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

use condition interface> enable/Disable tool container

cbz
8 - Asteroid

Hi Team

 

I am trying to use a condition interface to be able to enable and disable the tool container in the workflow when i publish the workflow up to gallery.

 

but i doesnt seems working for what i currently built. so can you help me validate the logic?

 

Thanks

 

Chunbin

6 REPLIES 6
BenMoss
ACE Emeritus
ACE Emeritus

If you are using a check box it will return either TRUE or FALSE, you are testing for the condition 'Weekly' which is always going to return False, and therefor enable the right tool container.

 

Ben

cbz
8 - Asteroid

Hi Ben

 

Within the tools what formula do i need to put in? 

 

Thanks 

CharlieS
17 - Castor
17 - Castor

I would recommend removing the Condition tool and connecting the Check box to each Action tool that update the containers.

 

In the image, you have the Condition configured to determine if the Action take places for not  The problem that this has is that it is subject to change the results based on how the workflow was saved. For example, you have the wizard open in designer to do some testing and have one of the containers open and one closed. Depending on how that was left and what the input is, the containers could potentially both be enabled or disabled.

 

I have attached an example that will always work no matter how the containers were configured when the wizard was last saved. 

BenMoss
ACE Emeritus
ACE Emeritus

Here is how I would approach the problem, rather than using a condition tool...

 

TrueContainerToRun.png

 

FalseContainerToRun.png

cbz
8 - Asteroid

@BenMoss

I am using a old version of alteryx. cant open the package you have attached. can you turn it be a app?

 

Thanks

 

 

BenMoss
ACE Emeritus
ACE Emeritus

You would face the same issue, and it is an app.

 

If you wish to downgrade the file you can do so following the instructions here: https://www.theinformationlab.co.uk/2018/07/12/downgrading-alteryx-workflows/

 

It's a really useful tip to learn!

 

Ben

Labels