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
Dual Super User

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
Dual Super User

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
Dual Super User

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
Dual Super User

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

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

Top Solution Authors
Top Kudoed Authors
Users online (8,075)