Hello,
I try to use parameters in an 'order by' command in a relational list (Cloud, 2022.10.01, secure mode):
select column1, column2, column3 from table order by @parameter1
A variable (returning one of the three column names) is assigned to the parameter.
Unfortunately I get the following message:
"The SELECT item identified by the ORDER BY number 1 contains a variable as part of the expression identifying a column position. Variables are only allowed when ordering by an expression referencing a column name."
How do I use the parameter in this case?
Further I have to add a second parameter for asc/desc:
select column1, column2, column3 from table order by @parameter1 @parameter2
Thanks in advance.
Best regards
Karin