Print Page | Close Window

Putting A Group Sort into a Parameter

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22878
Printed Date: 28 Mar 2024 at 10:38am


Topic: Putting A Group Sort into a Parameter
Posted By: jsh8286
Subject: Putting A Group Sort into a Parameter
Date Posted: 20 Jun 2020 at 2:09pm
We have created a report that contains a group sort based on a formula that sorts our report either ascending or descending.

Instead of going to the group sort expert to change the sort either ascending or descending can this be put into a parameter so we can change it from there?

Any suggestions would be greatly appreciated.




Replies:
Posted By: DBlank
Date Posted: 20 Jul 2020 at 5:02am
create a paramater with two values 'ascending' and 'descending'
in the group use a formula for the sort

if {?My Parameter}='Ascending' then crAscendingOrder
else if {?My Parameter}='Descending' then crDescendingOrder
else crOriginalOrder



Print Page | Close Window