Did MS recently change something about the way the SortByColumns function works?
Im trying to set the column using a context variable, but when using the variable over a "hard" text value, I get a delegation warning:
//In the button
UpdateContext({
loc_sortByColumn:"Modified",
loc_sortAscending:!loc_sortAscending
})
//In the gallery -> Delegation warning
SortByColumns(
productie_vanboxtel_PROCES_DETAIL,
loc_sortByColumn,
If(!loc_sortAscending,SortOrder.Descending,SortOrder.Ascending)
)
//In the gallery hardcoded -> No Delegation warning
SortByColumns(
productie_vanboxtel_PROCES_DETAIL,
"Modified",
If(!loc_sortAscending,SortOrder.Descending,SortOrder.Ascending)
)
*This has a SharePoint list as a source.
Does anyone know how to fix this? Delegation is important since the datasource is over 2000 rows.