Hi, im using SortByColumn in a Gallery, and i am going to create buttons with different for different sort order, eg button for Title, Created, Location, Created by, Priority Requester. My variable is varSortColumn.
I use the set(varSortColumn,"Title") to set the column name to sort by.
In the Item in the Gallery i use:
SortByColumns(Filter(Serviceoppdrag;StartsWith(Tittel;TextSearchBox1.Text);Active=false);varSortColumn;If(
SortDescending1;Descending;Ascending))
When i use a variable, and not the "hord code" name of the column i get an delegation warning. Is there a way to use variable without getting the delegation issue ? When i use the column name, there is not any delegation problem, only when i use a variable.