I have a nested gallery (screenshot attached).
Each of the columns has a title, and are filtering results to fit in that column.
I want to add a search bar that will search results, whilst still staying filtered under the column headings.
e.g. If I search "test", I want all the cards with "test" written on the fields listed below, to show up, but stay in the columns.
So the results might be - "Testing card for investigate" in the investigate column, and nothing will show in the received column.
My attempted code is below (for only one column so far). Currently, after playing around for a long time, I've only got it to filter by the column, then when a search happens it puts all of the results in that column, and the other columns are filtered by the 'Phase' field.
If(IsBlank(SearchCards.Text),
If(ThisItem.Value=1,
Filter(TABLE_MASTER_DATABASE_1,'$ Phase'="Received")),
If(ThisItem.Value=1,
Search(TABLE_MASTER_DATABASE_1,SearchCards.Text,"$ Board","$ ID","$ Matter Title","$ Matter Description"),
Filter(TABLE_MASTER_DATABASE_1,'$ Phase'="Received"))
)
Gallery with search function at top, needs to search but keep filtered under column.
I have also added filters, but am not sure how they would then fit into the same code...
If(IsBlank(SearchCards.Text),
If(ThisItem.Value=1,
Filter(TABLE_MASTER_DATABASE_1,'$ Phase'="Received")),
If(ThisItem.Value=1,
Search(TABLE_MASTER_DATABASE_1,SearchCards.Text,"$ Board","$ ID","$ Matter Title","$ Matter Description"),
Filter(TABLE_MASTER_DATABASE_1,'$ Phase'="Received"))
)
||
Filter(TABLE_MASTER_DATABASE_1, Priority = PriorityDropDown.Selected.Result)
Screenshot of filters:
