Alteryx Designer Desktop Discussions

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

Trouble with disabling/enabling containers based on condition

mbudcst
7 - Meteor

Hello! I have been stuck on this part of my workflow for a little bit now and not sure what else to try. What I'm trying to do is based on the user selection in the drop down (i.e., Test1, Test2) only one container should be ran. If the user selects Test2, the container for Test1 should be disabled so that only the Test2 containers data stream is processed. I've attached screenshots of what the Expression within the Condition Tool looks like, as well as a few others. I believe there is an error within the condition tool. Can't seem to figure it out. 

mbudcst_0-1632935204128.png

mbudcst_1-1632935373600.png

 

mbudcst_2-1632935388641.png

 

3 REPLIES 3
mst3k
11 - Bolide

In my version of Alteryx, the "Enable or Disable container" setting doesn't have a drop down to choose Enable/Disable like you do.... instead I have the following wording::

mst3k_0-1632937853827.png

To me, this is worthless because when a check box is SELECTED.. it will DISABLE your container. Which is almost never the way I would want it. They must have fixed that and put that dropdown option in a newer version. 

 

I would use a formula instead of the Enable/Disable, and pick the Disabled setting. Now.. .you still have to think kind of backwards, because the setting is called "DISABLED"... so if that value is FALSE, then your container is ACTIVE. so with the formula, check the value of whatever your radio button or check box etc is, and use a simple IF formula to control the container's DISABLED property

 

mst3k_1-1632938051734.png

 

CarliE
Alteryx Alumni (Retired)

@mbudcst ,

 

Attached is a workflow.

 

Instead of using the conditional, I just used a formula to update if it should be enabled or disabled. Please let me know if you have any questions.

 

If you found this solution helpful, please mark as a solution so other users can benefit!

 

Thanks,

carli

Carli
joshikalyani
8 - Asteroid

I need help for disabling container based on condition.

I've three tool  containers in workflow, these three container takes 3 different input files. But all the times these 3 input files are not there so, in this scenario i wanted to figure out how can container can be disables basis on condition if that file is not available.

joshikalyani_0-1674124858315.png

 

Labels
Top Solution Authors