cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MarcoM
Level: Powered On

Dropdowns in second gallery not showing expected values

Hi, I am encountering a problem with dropdowns in my gallery. 

On my screen I have two galleries, one of them contains buttons to update the information in the second gallery. 

Most of it is just working fine, but when I add dropdowns to this second gallery with a standard list of items from a third collection, it does not what I expected it should do. 

 

What am I doing:

 - Click the button near MO 1 (1st picture)

 - Select in the first dropdown Option 2
 - Click the button near MO 2 (2nd picture)

 - Click the button near MO 1 again (3th picture)

 

Now in all dropdowns of MO 1 option 2 has been selected by default. 

For MO 2 only the first has option 2 selected by default.

I expected only the first of MO 1 to be option 2 and others all option 1.

 

Button Gallery1: OnSelect: 

UpdateContext({SelectedMo: ThisItem}); Reset(Gallery2)

Dropdown Gallery2: Default: 

LookUp(alg, alg_om = ThisItem.re_opm).alg_om

Dropdown Gallery2: OnChange: 

Patch(re, LookUp(re, re_nr = ThisItem.re_nr) ,{re_opm: Dropdown.SelectedText.Value})

 

Does someone see the problem?

1 ACCEPTED SOLUTION

Accepted Solutions
MarcoM
Level: Powered On

Re: Dropdowns in second gallery not showing expected values

Problem solved. 

 

Dropdown Gallery2: Default: 

If(IsBlank(LookUp(alg; alg_om = ThisItem.re_opm).alg_om); Default; LookUp(alg; alg_om = ThisItem.re_opm).alg_om)

View solution in original post

1 REPLY 1
MarcoM
Level: Powered On

Re: Dropdowns in second gallery not showing expected values

Problem solved. 

 

Dropdown Gallery2: Default: 

If(IsBlank(LookUp(alg; alg_om = ThisItem.re_opm).alg_om); Default; LookUp(alg; alg_om = ThisItem.re_opm).alg_om)

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,314)