Hi all,
I have a gallery connected to a database table with the following columns:
ChildName
Center
Date
State
And I have implemented SortByColumns() in the gallery which sorts on search results (if any)
SortByColumns(Search('[dbo].[tblTardyStatus]_1', TextSearchBox1.Text, "ChildName", "Center","Date","State"),"State", ["New", "Absent", "Absent unexcused", "Late", "Late unexcused", "On-time"])It sorts a filtered result based on the Search() parameters (text matching any of the 4 columns) and then sorts it by the "State" column with a custom order which is
["New", "Absent", "Absent unexcused", "Late", "Late unexcused", "On-time"]
The issue I'm having is then sorting the results in alphabetical order according to the ChildName column. I have by adding two new arguments to the SortByColumns like displayed on the sort function page for powerapps
SortByColumns(Search('[dbo].[tblTardyStatus]_1', TextSearchBox1.Text, "ChildName", "Center","Date","State"),"State", ["New", "Absent", "Absent unexcused", "Late", "Late unexcused", "On-time"], "ChildName", Ascending)The issue is that it returns the error "SortByColumns has some invalid arguments"
Thanks for any help