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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,613)