Hello, I have a problem with the gallery, or rather with data that does not appear after starting the application. The data is visible after running the search engine or one of the filters. I think the problem is the code in the gallery, because when I remove it and enter it to show only sharepoint data, everything is fine.
With({
asmt: SortByColumns(
Filter(
Ksiazka_telefoniczna;
StartsWith(Nazwisko; searchQuery) || StartsWith(Pokój; searchQuery) || StartsWith(Telefon;searchQuery)
);
"field_1"
);
asmt_1: SortByColumns(
Filter(
Ksiazka_telefoniczna;
StartsWith(Nazwisko; searchQuery) || StartsWith(Pokój; searchQuery) || StartsWith(Telefon;searchQuery)
);
"field_1"
)
};
If(
filtr.Selected.Result = "Pokaż wszystkich pracowników";
If(
filtr_1.Selected.Result = "Pokaż wszystkie piętra";
asmt_1;
SortByColumns(
Filter(
asmt_1;
Text(Piętro) = filtr_1.Selected.Result
);
"field_1"
)
);
SortByColumns(
Filter(
asmt;
Stanowisko = filtr.Selected.Result
);
"field_1"
)
)
)