I have a screen with onVisible property set as ClearCollect(Collection1,AzureBlobStorage.ListFolderV2("XXXXXXX").value)
My gallery Items property set as Collection1
My search button onSelect property set as ClearCollect(Collection1,NameFilter.Text in DisplayName)
I want allow the user enter some input in NameFilter textbox and user can click the search button to filter the gallery with the name.
For example, user key in Apple in the textbox, the galley will filter item display name which contain "apple".
I tried function above but I still not able to filter the gallery, any other way to solve this?
Should you note use the Collection1 for anything else than displaying its content in the gallery, you don't really need it.
You could simply add AzureBlobStorage.ListFolderV2("XXXXXXX").value as the Items property of your gallery.
You could do something like this to search for items in the blob storage:
Search( AzureBlobStorage.ListFolderV2("XXXXXXX").value, NameFilter.Text, "<a column from your blob storage>" ) // and if you do it with your collection Search( Collection1, NameFilter.Text, "<a column from your collection>" )
If you have less than 500, respectively 2000 items, you shouldn't run into delegation issues.
I hope this helps. Let me know if you need more help.
Can you do this
and then send me a screenshot of the collection? Then I could give you a more accurate answer.
Did you manage to solve your issue?
Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.
Did you miss the call? Check out the Power Apps Community Call here.
We are excited to announce the Power Apps Super Users!
Check out our new profile badges recognizing authored solutions!