Hi everyone,
is it possible to build a "global" search for a collection?
The search should be Filter independent, so if a Filter is selected the Search should find every item in the gallery.
I'm currently using this function for my gallery:
SortByColumns(Search(Filter([...]); Textinput.Text; [outsource column]); "Sortnumber"; Ascending)
Solved! Go to Solution.
Hi @DustinB ,
You need to use the in Filter (which is the same result as Search) and an Or() argument || as below - so it is looking for either your filter or what you are searching for
SortByColumns(
Filter(
YourDataSource,
(YourCurrentFilterHere) ||
TextInput.Text in YourSearchField
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hey! Check this video:
https://www.youtube.com/watch?v=PsQhuX7WEbo&t=3s
Basically:
If( IsBlank(TextInput1.Text = true; SortByColumns(Search(Filter([...]); Textinput.Text; [outsource column]); "Sortnumber"; Ascending); HERER USE THE FUNCTION FROM THE VIDEO WITH STARTSWITH)
If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!
Best regards,
Gonçalo Nogueira
Check my LinkedIn!
Hi @DustinB ,
You need to use the in Filter (which is the same result as Search) and an Or() argument || as below - so it is looking for either your filter or what you are searching for
SortByColumns(
Filter(
YourDataSource,
(YourCurrentFilterHere) ||
TextInput.Text in YourSearchField
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Thank you!
Unfortunately it doesn't work for my case, because the gallery should only display the current Filter and should optional show the Item(s) when the searchbox is filled
I'm trying to realise this with a few if conditions... 🙂
User | Count |
---|---|
163 | |
95 | |
77 | |
72 | |
58 |
User | Count |
---|---|
216 | |
166 | |
97 | |
96 | |
74 |