cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Search function won't display items

My app is connected to Excel file hosted on OneDrive. 

 

I have a basic text input to act as a search bar. 

 

My Gallary.Items is set to a basic search formula:

 

Search(Table2Data,SearchBar.Text,"MDN")

But the gallary does not show any items when I launch the app unless I type something into the search box and then delete it. 

 

Am I missing something here?

1 ACCEPTED SOLUTION

Accepted Solutions
mx
Advocate III
Advocate III

I solved this problem as shown below:

 

2017-10-19_13-59.png

DatabaseMX ('mx')
Microsoft Access MVP

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

This is a known bug that happens with Search()

 

To solve this add this to your code:

 

If(
    IsBlank(SearchBar.Text),
    Table2Data,
    Search(
        Table2Data,
        SearchBar.Text,
        "MDN"
    )
)

 

mx
Advocate III
Advocate III

I solved this problem as shown below:

 

2017-10-19_13-59.png

DatabaseMX ('mx')
Microsoft Access MVP

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (3,709)