Hello, I am using CRXI and have a report that contains information on services. There are a few fields which the users would like control over for sorting such as a service category code, location of service, service date and person name. I have been able to create a primary sort of the records using a formula field with a parameter for the input to the formula. I put the formula field in my report header, then selected it as the first sort option in the Record Sort Expert. The users would like a secondary sort (and perhaps a third level sort) that they can also control. The formula I have for my primary sort is:
If {?SortField} = "L" then
{@service location code}
Else
If {?SortField} = "C" then
{Service.category}
Else
If{?SortField} = "D" then
{@service date }
Else
If {?SortField} = "N" then
{person.lastName}
I tried to create a similar formula, calling it SecondarySort, and associated it with a separate parameter, once again adding the formula to the report header and then choosing the formula as the next sort level in the Record Sort Expert. However, the report results appear to ignore this secondary sort input. Is there a way to accomplish more than one level of sorting using input parameters from the user?
If {?SortField} = "L" then
{@service location code}
Else
If {?SortField} = "C" then
{Service.category}
Else
If{?SortField} = "D" then
{@service date }
Else
If {?SortField} = "N" then
{person.lastName}
I tried to create a similar formula, calling it SecondarySort, and associated it with a separate parameter, once again adding the formula to the report header and then choosing the formula as the next sort level in the Record Sort Expert. However, the report results appear to ignore this secondary sort input. Is there a way to accomplish more than one level of sorting using input parameters from the user?