I'm encountering a strange bug when using Search on an SQL View.
I have a TextInput (the searchbar) and a Gallery displaying items from a SQL View. When there is text in the searchbar, the Search() functions works as expected and the Gallery items are filtered.
However, a strange issue occurs when I clear the searchbar. Please see the spoiler below:
Here's the code for Items in the Gallery:
Sort( Filter( If(Len(TInSearch_Request.Text) > 0, Search('[dbo].[VW_PendingItems]', TInSearch_Request.Text, "Title"), '[dbo].[VW_PendingItems]'), && Approver = User().Email ), CreatedDateTime, Descending )
Am I doing something wrong here?