×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Choose the sort the direction

Choose the sort the direction

Choose the sort the direction

(OP)
Crystal Developer v11
DB-IBM DB2


I have a parameter that allows the user to select the column that they want to sort the report.  Is there a way to allow them to select the sort direction as well.  Right now all of the sorts a being sorted descending and I need to allow the functionality of them being able to choose, asc or desc.  Please help!

Thanks!

RE: Choose the sort the direction

Create two formulas:

if {?SortDirection} = "Ascending" then {table.field}

if {?SortDirection} = "Descending" then {table.field}

Add each to the sort records area, and format the first for ascending, and the second for descending. If the sort direction is not selected, the formula will have not effect on the sorting.

-LB
 

RE: Choose the sort the direction

(OP)
Thanks LBASS!  I figured it out not long after I posted.  Te solution works great, I was even able to apply to the Group Sort Expert as well to drive the sort direction of both the groups and the details!

I see why you were voted member of the week!  Congrats and thanks again :-}

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close