web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Empty Gallery

(0) ShareShare
ReportReport
Posted on by 141

When I created my vertical gallery I connected it to the needed database and it would come up with the information I needed however when I add a textbox and want to be able to allow the user to search up any name they want that is in the database it now comes up with an empty gallery. 

The line I have is 

SortByColumns(Search(Players,TextInput8.Text,"PlayerName"),"PlayerName",Ascending) but it comes up with nothing in the gallery.

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    If(

    IsBlank(TextInput8.Text),

    SortByColumns(Players,"PlayerName",Ascending),

    SortByColumns(Search(Players,TextInput8.Text,"PlayerName"),"PlayerName",Ascending) 

    )

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    Buy me a coffee!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • A-Roosevelt Profile Picture
    153 on at

    Hello @donnacha

    Try with this function

     

    SortByColumns(Filter(Players,TextInput8.Text="PlayerName" || IsBlank(TextInput8.Text)),"PlayerName",Ascending)

     

    Cheers!

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @donnacha 

     

    Try this formular

    SortByColumns(Filter(Players,TextInput8.Text="PlayerName" || IsBlank(TextInput8.Text)),"PlayerName",Ascending)

     

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard