Is it possible to add a Search Bar that can search all Data within the Gallery.
For instance, if I search 'Open' it would provide me with listings of any item that has the word Open within it?
Good morning Warren. This sample works perfectly thank you so much for your help.
@rroque ,
Should be like this - assuming ctx_sort_column is a Variable.
SortByColumns(
Search(
OPTrack_FormsInventoryEnhancedTables,
txtSearch.Text,
FORM_NO
),
ctx_sort_column,
If(
ctx_sort_order,
SortOrder.Ascending,
SortOrder.Descending
)
)
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.
MVP (Business Applications) Visit my blog Practical Power Apps
I'm not sure I know what posting it together means. The two pieces of code is what I'm using now. I added the code to the items property of my list.
I'm not sure I know what posting it together means. The two pieces of code is what I'm using now. I added the code to the items property of my list.
Warren, here the commented code sorts the columns and the search below it. Both code I have in the items property of my list. So at the moment I can do one or the other but not both. By putting the code in the items property the second one types something in the search box the search kicks off and tries to find whatever is typed in the search box. I really like this behavior.
/*
SortByColumns(
OPTrack_FormsInventoryEnhancedTables,
ctx_sort_column,
If(
ctx_sort_order,
SortOrder.Ascending,
SortOrder.Descending
)
)
*/
Search(OPTrack_FormsInventoryEnhancedTables, txtSearch.Text, FORM_NO)
Kevtun. Take a look at my code below you'll find what you're looking for.
Hi @rroque ,
Can you please post the code you attempted with both functions.
Hi Warren. Because I added sort capable columns to the list items property the search function no longer works. So it's sort or search but not both. Any help would be greatly appreciated.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1