cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
felipewltc
Helper II
Helper II

filter choices using dropdown

I configured the button like this: Choices('RTR Workflow Master Data 4.0'.'Task Type'), it gave me the task type that I need, but how can I create another drop-down menu that shows the information related with that task?

For Example Task Type: Play futbool, (New dropdown): Monday, Wednesday. All that I need to filter is choice type.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @felipewltc ,

Could you please share a bit more about the 'RTR Workflow Master Data 4.0' data source? Is it a SP List?

Does your another Dropdown box also connect to a Choice type column?

 

I assume that the  'RTR Workflow Master Data 4.0' data source is a SP List, and the another Dropdown also connects to a Choice type column, is it true?

 

I have made a test on my side, please take a try with the following workaround:

Set the Items property of your second Dropdown box to following:

Filter(
        Choices('RTR Workflow Master Data 4.0'.'AnotherChoiceField'),
Value in ForAll(
Filter('RTR Workflow Master Data 4.0', 'Task Type'.Value = FirstDropdown.Selected.Value).'AnotherChoiceField',
'AnotherChoiceField'.Value
) )

Note: The FirstDropdown represents the first Dropdown box in your app, whose Items property set to Choices('RTR Workflow Master Data 4.0'.'Task Type'). The 'AnotherChoiceField' represents the another Choice field in your data source, which you want to display in your second Dropdown box.

 

More details about the ForAll function, please check the following article:

ForAll function

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @felipewltc ,

Could you please share a bit more about the 'RTR Workflow Master Data 4.0' data source? Is it a SP List?

Does your another Dropdown box also connect to a Choice type column?

 

I assume that the  'RTR Workflow Master Data 4.0' data source is a SP List, and the another Dropdown also connects to a Choice type column, is it true?

 

I have made a test on my side, please take a try with the following workaround:

Set the Items property of your second Dropdown box to following:

Filter(
        Choices('RTR Workflow Master Data 4.0'.'AnotherChoiceField'),
Value in ForAll(
Filter('RTR Workflow Master Data 4.0', 'Task Type'.Value = FirstDropdown.Selected.Value).'AnotherChoiceField',
'AnotherChoiceField'.Value
) )

Note: The FirstDropdown represents the first Dropdown box in your app, whose Items property set to Choices('RTR Workflow Master Data 4.0'.'Task Type'). The 'AnotherChoiceField' represents the another Choice field in your data source, which you want to display in your second Dropdown box.

 

More details about the ForAll function, please check the following article:

ForAll function

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

All working perfect, thank you for your help.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Users online (70,020)