PeterCortiel

why can't i sort by a variable

Discussion created by PeterCortiel on May 14, 2017
Latest reply on May 14, 2017 by TomHays

I replaced the columns header in a list view with button

the action passes the name of the column(field)  into a variable called $ fldname

and I would like it if I dod not have to hardcopy the fieldname in the sort

 

My script

Gets the parameter (filename)

Then decided if desc or ascending by a $$ field

Sort records by field ( direction ; $fldname)

 

What am I missing?

 

 

Peter

Outcomes