Hey all,
I'm trying to filter a data table based purely on text entered into a search bar. As the search function doesn't allow you to take the .Selected.Value of your search fields, I've been using AddColumns to create a temporary column with just the selection text which the Search function can then work with. This approach doesn't seem to work with multiple selection combo boxes, however. Is there any way to get my approach to work with multiple selections without having to do a whole rewrite of my code?
In the below code, 'Action On' and 'Project Actioned' are the multi-choice columns.
Cheers,
SortByColumns(
Search(
AddColumns(ECR,
"StatusVal", Status.Value, "ActionOnVal", 'Action On', "ProjActionedVal", 'Project Actioned', "DepInChargeVal", 'Department in Charge'.Value,
"ProductVal", Product.Value, "ComponentVal", Component.Value, "SubAssemVal", 'Sub Assembly'.Value, "RaisedByVal", 'Raised By'.DisplayName, "WhoVal", Who.DisplayName
),
ECR_IssueFilterInput.Text, "ECR_ID", "ACT_ID","Title", "Comments", "StatusVal", "ChangeDone", "DepInChargeVal", "ProductVal", "ComponentVal", "SubAssemVal", "RaisedByVal", "WhoVal"),
"ECR_ID", If(ECRIDSortOrder = Ascending, Ascending, Descending))
)