I have a gallery in which I want the user to be able to search for items based on their values in multiple columns. They can also click on a tab (that sets varCurrentTab to a category of items) in order to filter on their status. Currently it works, but only with one column as a searchable column. How can I modify it so that it searches multiple columns?
I think it might be an issue with how the AddColumns limits the span to only include the Gjenstandstype column.
My current gallery filter code looks like this
Filter(
Search(
AddColumns(
'Teknisk utstyr',
"GjenstSearch",
Gjenstandstype.Value
),
inpSearch.Value,
"GjenstSearch"
),
Status.Value = varCurrentTab
)
EDIT:
Here is my working code, for anyone interested:
Filter(
Search(
AddColumns(
'Teknisk utstyr',
"GjenstSearch",
Gjenstandstype.Value,
"ModellSearch",
Modell,
"PersonSearch",
'Utlevert til'.DisplayName,
"IdSearch",
Title
),
inpSearch.Value,
"GjenstSearch",
"ModellSearch",
"PersonSearch",
"IdSearch"
),
Status.Value = varCurrentTab
)