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

Dropdown resets while using Filter or Search function on Gallery Items.

Hi all, 

 

I was troubling with gallery issues, I tried to implement the Search/Filter input in Gallery.Items and it works very well. 

I was able to filter any items within gallery but I do have a dropdown used in that particular Gallery.Items and it just resets back if I search any other terms after my first search. 

 

Here's a screen shot for the reference.

 

ashwnaidv100_0-1600859854113.png

 

The dropdowns just reset when i search for other key words on dropdowns on gallery.  

6 REPLIES 6
Maria_L
Frequent Visitor

Hi @ashwnaidv100 ,

 

Have you tried setting the default value as a variable? For example, change the 'OnSelect' value of the dropdown to "Set(FirstSelection, Dropdown1.SelectedItems.Value)", then the default value the dropdown as this variable, in this case "FirstSelection".

 

Hope this makes sense!

Hi @Maria_L,

 

This makes sense. I haven't tried it before. But I just tested after your post. And below is the result. Which says expected a record,

Even I tried FirstSelection.Value, But the error is same. Not sure even if this will keep it stored for each dropdown items in gallery. 
Even I tried to put {_value : FirstSelection}, But it also didn't worked out. 

 

ashwnaidv100_1-1600965464980.png

 

Any more suggestion would be really helpful. 

 

 

No the problem still not resolved. 

@v-bofeng-msft

Hi @ashwnaidv100 ,

This is a known issue with unbound gallery controls - they reset to Default whenever something is triggered from the gallery. If you are using a collection for the Gallery Items, use AddColumns to add a Text field, Patch to this field on the OnChange of the drop-down and then set the Default of the drop-down to ThisItem.TextFieldName.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi @ashwnaidv100 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

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 (26,704)