cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Is this is bug in the gallery.selected expression?

Hi I am trying to display data in a textinput control based on which checkbox is selected in a gallery.  But it seems that the statement: 'Gallery.Selected.CollectionField1' is giving unintended results.  For example in the gallery if I had 2 items A & B.  If I check A first, then I check B second.  Then I uncheck B, and hit the modify button to go back to the previous screen, it should show item 'A' data.  But it shows item 'B', or whatever was checked OR unchecked last.  I tried the Refresh(Gallery1.Selected) or Refresh(Gallery1.AllItems) in the Modify button 'OnSelect' property but that didnt work.   Someone in the forum also suggested I put the expression Set(ResetCheckbox,true);Set(ResetCheckbox,false); in the 'modify' button inside the 'OnSelect' property, then put ResetCheckbox in the reset property of the checkbox, but that did not work. Would appreciate the help. Thanks.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Is this is bug in the gallery.selected expression?

Hi @mahakala_ 

 

Here is the similar thread for your issue, please follow the response shared so that we can debug this together. 
 
 
The thing is, gallery selected item is different and the checkbox value true is different. The Gallery selected refers to the last item that got clicked in a gallery, no matter if the checkbox is checked or not.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
Dual Super User III
Dual Super User III

Re: Is this is bug in the gallery.selected expression?

Hey @mahakala_ 

 

I think the issue is now resolved on the other thread you posted. Can you please mark this as anwered and close the thread? Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
Highlighted
Dual Super User III
Dual Super User III

Re: Is this is bug in the gallery.selected expression?

Hi @mahakala_ 

 

Here is the similar thread for your issue, please follow the response shared so that we can debug this together. 
 
 
The thing is, gallery selected item is different and the checkbox value true is different. The Gallery selected refers to the last item that got clicked in a gallery, no matter if the checkbox is checked or not.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
Dual Super User III
Dual Super User III

Re: Is this is bug in the gallery.selected expression?

Hey @mahakala_ 

 

I think the issue is now resolved on the other thread you posted. Can you please mark this as anwered and close the thread? Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
Helper III
Helper III

Re: Is this is bug in the gallery.selected expression?

Thanks @yashag2255 ,

 

Your answer resolved my issue. 

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

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

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,505)