cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mahakala_
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
yashag2255
Dual Super User II
Dual Super User II

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

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

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

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

Thanks @yashag2255 ,

 

Your answer resolved my issue. 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (19,587)