cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Blaze
Helper I
Helper I

Updating Gallery from either Dropdown or another Gallery (2 possible inputs)

Wondering if someone can help. My brain is too frazzled having tried to solve this myself. Apologies if it's too easy or I am trying something that is just not possible! 🙂

 

My Data source is an Excel import file with 5 names. This works fine.

 

I have a Dropdown1 menu which is populated by the data source. This populates fine.

 

I also have Gallery0 which is populated by the data source. This populates fine too.

 

The APP has both the Dropdown1 and the Gallery0 as a Name selection choice.

 

I want to send either the Dropdown1 or Gallery0 value to another gallery called Gallery1.

 

On Gallery1, in Items I have "Filter(Office365Users.SearchUser({searchTerm:Dropdown1.Selected.Name}),AccountEnabled=true)". This works fine.

 

If I change Gallery1 Items to ""Filter(Office365Users.SearchUser({searchTerm:Gallery0.Selected.Name}),AccountEnabled=true)". This works fine.

 

Any ideas what formula I need to use to allow Gallery1 to accept a searchTerm from either Dropdown1 or Gallery0? (both use Name)

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Blaze
Helper I
Helper I

Solved it by using UpdateContext on both controls then using the variable in the searchTerm. Real easy answer upon reflection 🤣.

View solution in original post

2 REPLIES 2
Blaze
Helper I
Helper I

Solved it by using UpdateContext on both controls then using the variable in the searchTerm. Real easy answer upon reflection 🤣.

View solution in original post

v-siky-msft
Community Support
Community Support

Hi @Blaze 

 

That's great that you have found the workaround.

Could you click your post on “Accept as Solution” to help other members find it more quickly.

Best regards,

Sik

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!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (40,622)