I'm trying to filter a dropdown from a combobox.selected items. Data source is SQL for both. I believe you can't filter directly, so I have an OnChange event for combobox to concat the list of selected items together and then filter dropdown from that selected list. Like this pseudocode:
ComboBox OnChange():
UpdateContext({varBranchCodes:Concat(cboBranches.SelectedItems,branchcode,", ")})
Then, for dropdown Items():
Filter(Active_Patients, varBranchCodes in CltBranch)
This works fine if there are 1 BranchCode selected, but as soon as I choose 2 or more, the "in" statement doesn't return any records. I can go to the SQL source and select using those BranchCodes and return data no problem. What am I doing wrong?