Hi to all,
I`ve already searched the whole forum, but did not find an answer to my problem.
I want to give the user of my report the possibility to set the sorting criteria of the displayed data himself. Therefor I created one Parameter {?ORDER}. This has already defined default values (for each criteria asc and desc). The user can choose multiple of this criteria.
Here a simple example for only one criteria: The user wants to sort by "business unit desc" (=string!!!).
To find out, how the user wants the data to be sorted, I created the following formula {@ORDER1}:
--------------------------------------------------------
...
if ({?ORDER})[1] = "Business units asc" then
({BusinessUnit.Name}) //string!!!
else
-({BusinessUnit.Name}) //string!!!
...
--------------------------------------------------------
To this formula {@ORDER1} I want to refer in the SortingManager (don't know how it is called in the English version, sorry).
My problem know is:
The "-" operator in the above formula does not work. CR tells me that a number or a currency value is expected after "-".
Is there another possibility to set the sort order of a string descending?
I use CR 8.5...
Thanks for any help!
I`ve already searched the whole forum, but did not find an answer to my problem.
I want to give the user of my report the possibility to set the sorting criteria of the displayed data himself. Therefor I created one Parameter {?ORDER}. This has already defined default values (for each criteria asc and desc). The user can choose multiple of this criteria.
Here a simple example for only one criteria: The user wants to sort by "business unit desc" (=string!!!).
To find out, how the user wants the data to be sorted, I created the following formula {@ORDER1}:
--------------------------------------------------------
...
if ({?ORDER})[1] = "Business units asc" then
({BusinessUnit.Name}) //string!!!
else
-({BusinessUnit.Name}) //string!!!
...
--------------------------------------------------------
To this formula {@ORDER1} I want to refer in the SortingManager (don't know how it is called in the English version, sorry).
My problem know is:
The "-" operator in the above formula does not work. CR tells me that a number or a currency value is expected after "-".
Is there another possibility to set the sort order of a string descending?
I use CR 8.5...
Thanks for any help!