cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

OnSelect property when filtering a gallery down to one option

Wondering if anyone has a solution to this -

 

I have a gallery that I'm filtering based on a couple dropdowns that has some OnSelect properties - specifically, it updates a few collections and sets a couple variables. Due to my use case, it's frequent that the user will filter the gallery down to a single option.

 

When it's filtered to one option, everything that refers back to the gallery (Gallery1.Selected.Name, etc.) fills fine, but obviously the OnSelect actions don't go through until the user clicks on the item. It's not the end of the world but, also, not the most intuitive UI.

 

Is there any workaround for this to allow the user to just start work on the item without actually clicking it?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: OnSelect property when filtering a gallery down to one option

Hi @AParker 

There is no Action associated with a gallery except OnSelect.  However, you could set the OnChange property of your dropdowns 

If(
   CountRows(Gallery1.AllItems) = 1, 
    EditForm(Form1)
)

The command will not be executed unless the condition is met. 

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: OnSelect property when filtering a gallery down to one option

Hi @AParker 

There is no Action associated with a gallery except OnSelect.  However, you could set the OnChange property of your dropdowns 

If(
   CountRows(Gallery1.AllItems) = 1, 
    EditForm(Form1)
)

The command will not be executed unless the condition is met. 

View solution in original post

Highlighted
Frequent Visitor

Re: OnSelect property when filtering a gallery down to one option

This is a clever workaround! Thanks very much.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

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,872)