cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,659)