Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Multiple Selection box fails in chained aap

praneshsapmm
8 - Asteroid

Dear's ,

 

I have AAP1 and AAP2 . 

 

AAP2 data is dependent on AAP1 selection as shown below . 

 

praneshsapmm_0-1605923883163.png

 

But when i select multiple values in AAP1 in above pic , it fails to call AAP2 . 

 

Any issue here. 

 

Thanks.

18 REPLIES 18
AkimasaKajitani
17 - Castor
17 - Castor

Hi @praneshsapmm 

 

Please refer WeeklyChallenge #175(Tire Size Calculator).

https://community.alteryx.com/t5/Weekly-Challenge/Challenge-175-Tire-Size-Calculator/td-p/447639

 

This challenge is good examination for chained app.

List boxes in Chained apps only work with ”ExternalSource” option.
The only way to change the choices dynamically is to use an "ExternalSource" option.

So you have to save the selection for app2 in chained app1

 

クリップボード一時ファイル04.png


The first app works well because you have "executed" the workflow.

 

praneshsapmm
8 - Asteroid

Hi @AkimasaKajitani  ,

 

Both the AAP's work well when i only check only one option . But they fail when i select multiple options . 

 

I think i have to try passing values by formula instead of default value . 

 

But not sure how to do . 

 

Thanks.

cgoodman3
14 - Magnetar
14 - Magnetar

When you say that App2 fails to be called after running App2 have you set this up to run in the Interface designer.

 

cgoodman3_0-1605963379729.png

 

 

As @AkimasaKajitani suggests check out the weekly challenges with chained apps in, and there is also this interactive lesson - https://community.alteryx.com/t5/Interactive-Lessons/Chaining-Analytic-Apps/ta-p/243120

 

 

Chris
Check out my collaboration with fellow ACE Joshua Burkhow at AlterTricks.com
cgoodman3
14 - Magnetar
14 - Magnetar

When using a list box there is an option to create a custom list

cgoodman3_0-1605963792329.png

 

Then you can pass that value into a filter tool to only pass specific results downstream, for example if in my main workflow I have a filter that is set to use a IN filter.

 

cgoodman3_1-1605963886008.png

 

Then if I update the first app multi check box, as per the example

cgoodman3_2-1605963929927.png

 

Then the filter tool will be updated to do this:

cgoodman3_3-1605963966055.png

 

Which I think meets your use case?

Chris
Check out my collaboration with fellow ACE Joshua Burkhow at AlterTricks.com
praneshsapmm
8 - Asteroid

Hi @cgoodman3  ,

 

Here are Scenario : 

 

When i select one option in AAP1 : 

 

praneshsapmm_0-1605964365859.png

AAp2 results are shown as below : 

 

praneshsapmm_1-1605964407294.png

Whereas i select multiple options : 

 

praneshsapmm_2-1605964558511.png

AAP2 results are not shown . 

 

praneshsapmm_3-1605964584521.png

 

Is it because iam passing single default value . 

 

Thanks

cgoodman3
14 - Magnetar
14 - Magnetar

Hi

 

So with mock data you've got something like this

 

AccountNumber,Company

0001,CompanyX

0001,CompanyY

0001,CompanyZ

0002,Companya

0002,Companyb

0002,Companyc

0003,Company1

0003,Company2

 

If you use that filter I showed in my earlier post then when you multi-select with say Account 0002 and 0003 it will bring through to app2 Company a,b,c,1,2.

Chris
Check out my collaboration with fellow ACE Joshua Burkhow at AlterTricks.com
praneshsapmm
8 - Asteroid

Hi @cgoodman3  ,

 

I have this error : 

 

praneshsapmm_0-1605967576219.png

 

For set up : 

 

praneshsapmm_1-1605967606334.png

 

cgoodman3
14 - Magnetar
14 - Magnetar

I am not too familiar with the in-db tools but you need to replicate the same IN statement as I have in the non-inDB filter tool. As the action tool will replace a string but you need a way of building a string out with the list box tool which can replace multiple values.

Chris
Check out my collaboration with fellow ACE Joshua Burkhow at AlterTricks.com
AkimasaKajitani
17 - Castor
17 - Castor

Hi @praneshsapmm 

 

As he says, the SQL statements must be created in the Action tool.

 

You have to use "Generate Custom List" option at List Box tool, and Start text, Separator and End Text have to set as below.

" is not work so set ' at SQL Server.

 

AkimasaKajitani_0-1606009822646.png

 

At Action tool, I use the below function. "Sub-Category" is my test field, so you have to overwrite the field that you want to use.

 

'"Sub-Category" IN ('+[#1]+')'

 

AkimasaKajitani_1-1606009997062.png

 

Labels