Hi,
I've built a power app that has a gallery linked to a Sharepoint list. I've created a search bar that works and also a drop down list that works. But I can't figure out a way for them both to work on the same gallery.
Below is the code for the search bar to be working in the gallery:
Search('External Secondees_1',TextInput2.Text,"field_3")
Below is the code for the dropdown list working in the gallery:
Filter('External Secondees_1',L2 = Dropdown1_1.Selected.Value)
Is it possible to merge these two together so that I can have both working simultaneously?
Thanks in advance
Hi @Chainfire74 ,
What you probably are looking is to have an option to either search items depending if the dropdown is selected and if it is then to filter by it.
Try this :
If(
IsBlank(Dropdown1_1.Selected.Value),
Search(
'External Secondees_1',
TextInput2.Text,
"field_3"
),
Search(
Filter(
'External Secondees_1',
L2 = Dropdown1_1.Selected.Value
),
TextInput2.Text,
"field_3"
)
)
_____________________________________________________________________________________
Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!
Search(Filter('External Secondees_1',L2 = Dropdown1_1.Selected.Value),TextInput2.Text,"field_3"
Does that work?
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!
My website!
WarrenBelz
146,731
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional