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

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,520)