Hi! I wanted to create a search bar that finds a specific element if searched in listviewer, how can I do that? This is my code block so far:
(The textbox is the text entered and the searchBttn is the button to search)
Hi! I wanted to create a search bar that finds a specific element if searched in listviewer, how can I do that? This is my code block so far:
(The textbox is the text entered and the searchBttn is the button to search)
There is a search bar built-in to the listview ?
Or you can use a textbox:
Indexes change when you filter the list so use the selection
to find the original index (thing in list)
I am using a textbox, but I don't really understand the tutorial linked. This is my active code.
I don't know how to filter listview elements that only contain words searched in searchbar
There is also a readcolumn code for the sheets but it isn't shown.
it did not work, nothing happens
what not work? what did you do?
I fixed it sorry, but now when I search for an item, it shows but then if I delete searchbox text the other item list doesnt reappear. How can I make that happen?
again what did you do? are you using the TextBox.TextChanged event?
This post was flagged by the community and is temporarily hidden.
check my demo again, you will find I store the list data to a global variable:
in the make new filtered list block, you can not use the listview.elements, but use the global variable.
and the 'if else if ' not needed.
I cannot set the "all data" variable because it is added by the user (via Google sheet storage) and changes often.
of course you can, set it when you got value from spreadsheet.
This is how I set the variable to the value from sheets, but the search function only works for one data, the rest don't show up when searched.
you are not showing All the relevant blocks.
Show the content and structure of columnData.
You should also copy columnData to listData to create a non linked list, and load listData to the listview, not columnData.
This is the sheet I am using. More teams can be added future wise but data currently is just dummy data.
I fixed it, I linked the wrong listview to variable. Thank you for your help.