cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bletillafoliosa
Regular Visitor

Making a search bar deletes my data?

I'm trying to create an app from data, and I've linked a Google Sheet called "MembersList". I can get the data to show up in BrowseGallery1, but when I edit the "Items" formula to try to make a search bar, it gives me an error and says there's no data linked.

 

Here's what I put into the formula:

SortByColumns(Search('MembersList'; TextSearchBox1.Text; "Name"; "Phone"; "Email"; "Year" ); "Name"; If(SortDescending1; Descending; Ascending))

 

The thing that I don't understand is that this was working for me earlier, and I'm not sure why it would suddenly give me this error. Attached is a screenshot of what it looks like when I try to put the formula in.

 

Any help is appreciated. Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

Hi @bletillafoliosa

To help diagnose this problem, I would deconstruct the formula to find out the point at which the error occurs.

To begin, if you set the items property to just the data source, do you get any errors?

'MembersList'

If not, I would try this:

Search('MembersList'; TextSearchBox1.Text; "Name"; "Phone"; "Email"; "Year" )

Finally, I would try the full formula again to see if the SortByColumns formula is the cause of the error.

Another thing that can help is when you hover the mouse over the red exclaimation marks, what is the exact error message that you see? Also, it might also help to refresh you data source via the View > Data Sources menu.

View solution in original post

1 REPLY 1
timl
Super User
Super User

Hi @bletillafoliosa

To help diagnose this problem, I would deconstruct the formula to find out the point at which the error occurs.

To begin, if you set the items property to just the data source, do you get any errors?

'MembersList'

If not, I would try this:

Search('MembersList'; TextSearchBox1.Text; "Name"; "Phone"; "Email"; "Year" )

Finally, I would try the full formula again to see if the SortByColumns formula is the cause of the error.

Another thing that can help is when you hover the mouse over the red exclaimation marks, what is the exact error message that you see? Also, it might also help to refresh you data source via the View > Data Sources menu.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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