Hi guys!
I'm reaching out to get some help with merging 2 different parts of code I have written. They work independently but I can't figure out a way to take the first code and merge it with the second.
Any help is very much appreciated!
1. First code, filtering the gallery with a combobox that displays Office 365 users
If(
IsEmpty(ComboBox2_5.SelectedItems);
lst_suivi_materiel;
Filter(
lst_suivi_materiel;
'Agent Propriétaire'.DisplayName in ComboBox2_5.SelectedItems.DisplayName)
)
2. Second code, that shows all the other filters for the gallery
Sort(//On trie par date dans l'ordre ascendant les résultats
Search(//on permet de rechercher grâce à "Search_IMEI.Text" le texte entré dans la liste
Filter(//ici on filtre la liste en affichant toujours au minimum tous les éléments, puis on trie par UO, type de matériel et agent
lst_suivi_materiel;
(IsBlank(Combo_UO_4.Selected.Value) || StartsWith(
UO;
Combo_UO_4.Selected.Value
)) && (IsBlank(Cat_Combo_2.Selected.Value) || StartsWith(
Type_de_materiel;
Cat_Combo_2.Selected.Value
)) && (IsBlank(Cat_Combo_3.Selected.Value) || StartsWith(
Disponibilité;
Cat_Combo_3.Selected.Value
))
);
Search_IMEI_1.Text;
"Title"
);
'Date de dotation';
SortOrder.Ascending
)
Thanks!