Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Putting A Group Sort into a Parameter Post Reply Post New Topic
Author Message
jsh8286
Groupie
Groupie
Avatar

Joined: 09 Mar 2012
Online Status: Offline
Posts: 46
Quote jsh8286 Replybullet Topic: Putting A Group Sort into a Parameter
    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.

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet 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
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.063 seconds.