cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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
Highlighted
Advocate I
Advocate I

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
Highlighted
Advocate I
Advocate I

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,601)