Hi,
I have added a Search textInput box to my form. I called it tbSearch and the form is called SharePointForm1, my source data is 'GP Site Details'. When I select the form, I use Item and place the code in the function box.
I want to search by Practice Name, but the code I use does not work:
Filter('GP Site Details', StartsWith('Practice Name', tbSearch.Text))
Thanks for your help on this, all great and appreciate your help on this issue.
Please let me know if this helped.
------------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.
If you like my response, please give it a Thumbs Up.
Hi @Miik
Nice, it worked!
We need to avoid the use of IN when searching in dataset that why the warning about large datasets:
LookUp(
'GP Site Details',
'Practice Name' = tbFilter.Text
)
If it worked you will be able to see the record that you searched for.
Add a label in your gallery:
ThisItem.'Practice Name'
Watch this video to learn how to use Filter, Search and LookUp functions.
https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-filter-lookup
------------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.
If you like my response, please give it a Thumbs Up.
Forgot to say, although these worked:
Filter('GP Site Details', tbFilter.Text in 'Practice Name')
Filter('GP Site Details', StartsWith('Practice Name', tbSearch.Text))
I do get a warning about large datasets.
Hi,
I added some text input fields to the gallery as I thought hmm, if its working, how would the data appear. Sorted, but with a Gallery and Form, what do I do now ?
I can use both can I ?
These worked in my gallery:
Filter('GP Site Details', tbFilter.Text in 'Practice Name')
Filter('GP Site Details', StartsWith('Practice Name', tbSearch.Text))
These Didn't
Search('GP Site Details', tbSearch.Text, "Practice Name")
Filter('GP Site Details', tbFilter.Text='Practice_x0020_Name')
Search('GP Site Details', tbSearch.Text, "Practice Name")
Filter('GP Site Details', StartsWith('Practice Name', tbSearch.Text))
Filter('GP Site Details', tbSearch.Text='Practice_x0020_Name')
Filter('GP Site Details', tbSearch.Text in 'Practice Name')
I tried all these and no luck. Maybe I am no 100% on Gallery, but this is what I did:
ok, back, sorting out this new gallery an going to test it out.
Hi, out on site ATM, back in office about 11am. I'll check all previous and let you know. Appreciate your help.
Please let me know if it worked.
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Thanks, I'll try to do another screen with the gallery and let you know how if goes
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,004
Most Valuable Professional