Hello guys,
I have this formula on mi Item's gallery property:
SortByColumns(Search(EmployeeDirectory,TextInput1.Text,"FullName"),
"Yjoined", Descending,
"Mjoined", Descending,
"Djoined", Descending
)
I want to add a sort bottom to order my gallery by FullName, so I added the bottom and OnSelect property I have this:
UpdateContext({varPersonSort: !varPersonSort})
So adding the feature I have this:
If(!IsBlank(varPersonSort),
SortByColumns(
Search(EmployeeDirectory,TextInput1.Text,"FullName"),
"Yjoined", If(varPersonSort=true,Descending,Ascending),
"Mjoined", If(varPersonSort=true,Descending,Ascending),
"Djoined", If(varPersonSort=true,Descending,Ascending)
))
But is not working and I don't get why.
Any ideas?
Thank you in advance,