Dear experts,
I'm still building an app that allows filtering users from a SharePoint list (MySPList). Thanks to the community members (the post here), I managed to resolve a big problem; filtering the gallery using a combo box with multi-select choice using this formula added to the Items property of the gallery:
Filter(colMySPList,
IsEmpty(SkillsBox_1.SelectedItems) || IsBlank(SkillsBox_1.SelectedItems) || Index(
SkillsBox_1.SelectedItems.Value,
1
).Value in Skills.Value || Index(
SkillsBox_1.SelectedItems,
2
).Value in Skills.Value || Index(
SkillsBox_1.SelectedItems,
3
).Value in Skills.Value || Index(
SkillsBox_1.SelectedItems.Value,
4
).Value in Skills.Value || Index(
SkillsBox_1.SelectedItems.Value,
5
).Value in Skills.Value,
colMySplist: is a collection of my SharePoint list. I'm using a collection to overcome the delegation problems.
SkillsBox: is the name of the combo box which has 5 choices.
I have two other combo boxes (Nationality and Language) that both have a large number of items (more than 100 for languages). Is there a way I can use a similar formula as above without adding up the index number over and over? There are two additional obstacles here:
- The above items property of the gallery also includes some other options, like gender of the users that I'm not posting on this thread. So, the formula should be able to handle these additional filtering options.
- In my SP list, I have two separate language columns, Major Language and Other Languages. In the combo box's item property, I have a collection that combines these two columns into one data source as below:
ClearCollect(
colComboBox,
ForAll(
Choices('MySPList'.'Major Language'),
ThisRecord.Value
),
ForAll(
Choices('MySpList'.'Other Languages'),
ThisRecord.Value
)
)
In other words, I should be able to filter the gallery using either both collections (colComboBox for languages and colMySPlist for the rest of the data) or in a way that enables me filtering for all the additional filters (gender etc.), the 5 skills, nationalities and both Major and Other Languages, without any delegation issues.
Thanks for your help,