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

BrowseGallery Default Sorting and Searching

Hi all,

 

I'm trying to clean up a power app before i roll out to be tested, but I'm a bit stuck on a BrowseGallery.

Currently data (Assets) shows up in whatever order it was added into the connected sharepoint list, but i'm trying to get it to show up in ascending order based off the "Barcode Number", while not breaking the ability to search for an asset via its Barcode Number.

 

Table: 'Asset Database'

Barcode: 'Barcode Number'

 

Currently running the search function

Filter('Asset Database', StartsWith('Barcode Number',TextSearchBox1.Text))

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @lachwise ,

Something like this should do it

Sort(
   Filter(
      'Asset Database', 
      StartsWith(
         'Barcode Number',
         TextSearchBox1.Text
      )
   ),
   'Barcode Number'
)

 

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.

Visit my blog Practical Power Apps

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @lachwise ,

Something like this should do it

Sort(
   Filter(
      'Asset Database', 
      StartsWith(
         'Barcode Number',
         TextSearchBox1.Text
      )
   ),
   'Barcode Number'
)

 

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.

Visit my blog Practical Power Apps

Hi @WarrenBelz ,

 

That seems to have done the trick perfectly, thank you for the assistance!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,839)