Hi:
I need some help to figure out why the TextSearchBox feature in my mobile PowerApp is not working correctly.
In my BrowseScreen, I have a BrowseGallery that display City, State, Zip and TextSearchBox on top of the screen.
The TexSearchBox search works fine for filtering what is displayed in the BrowseScreen.
However it does not search the entire data source for records to return into the BrowseScreen.
So a very simplified example:
a) DataSource name of "Locations" has these columns : City, State, Zip
Los Angeles, CA, 12344
Santa Monica, CA, 12355
Long Beach, CA, 12366
Anchorage, AK, 22233
Fairbanks, AK, 22244
b) TextSearch box is set to search on City or Zip
This is the formula i have for the BrowserGallery Data Item option:
SortByColumns(
Search(Locations, TextSearchBox1.Text, "City","Zip"),"City",
If(SortDescending1, Descending,Ascending))
b) Let's say I browse to display the cities in the state of California.
Los Angeles, CA, 12344
Santa Monica, CA, 12355
Long Beach, CA, 12366
When using the TextSearchBox:
If I search for "Monica" it will correctly filter the results to only display Santa Monica
If I search for "344" it will correctly filter the results to only display Los Angeles.
If I search for "Anchorage" it will return nothing to the browse screen
The mobile PowerApp was created using the "Start from Data" template, and the data source is an excel file on a OneDrive for Business folder.
thanks in advance for any help or guidance.
You have just prefered search in specific field apply the same on all and return should be values you want and not only city
Hi @tmoey,
Are you sure you post your question in the expected community?
I don't see MS Flow related information from the content you provided.
This seems to be related to PowerApps, please consider posting your question in the PowerApps community, perhaps there is a suitable workaround.
Also if you have questions about Flow, please provide more details, we would provide proper workaround for you.
Best Regards,
Upon further analysis, this turned out to be a datasource refresh issue.
There was nothing wrong with the Search or Sort formulas.