I created sort parameter to give user possibility to sort by desired field. Then Create Sort formula:
if {?Sort} = "PROJECT_NUMBER" then
{Command.PROJECT_NUMBER}
else if
{?Sort} = "DATE_OF_COMPLAINT" then
totext({Command.DATE_OF_COMPLAINT}, "yyyy-mm-dd")
else if
{?Sort} = "ALLEGATION_SOURCE_DESCRIPTION" then
{Command.ALLEGATION_SOURCE_DESCRIPTION}
else if
{?Sort} = "TARGET_NAME" then
{Command.TARGET_NAME}
and grouped by this Sort formula. When I grouped I did it ascending. My question is:
Can I give user ability to select sort in ascending or descending order?
Thank you
if {?Sort} = "PROJECT_NUMBER" then
{Command.PROJECT_NUMBER}
else if
{?Sort} = "DATE_OF_COMPLAINT" then
totext({Command.DATE_OF_COMPLAINT}, "yyyy-mm-dd")
else if
{?Sort} = "ALLEGATION_SOURCE_DESCRIPTION" then
{Command.ALLEGATION_SOURCE_DESCRIPTION}
else if
{?Sort} = "TARGET_NAME" then
{Command.TARGET_NAME}
and grouped by this Sort formula. When I grouped I did it ascending. My question is:
Can I give user ability to select sort in ascending or descending order?
Thank you