Wrox Programmer Forums
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 20th, 2005, 01:23 PM
Authorized User
Join Date: Dec 2004
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Default sorting

Hi I have a report which gives the user the ablility to choose the sort order. So i have created a paremeter with ANIMa,Group and Cage values. And wrote a formula

if ucase({?Sortfield}) = 'ANIMAL' then
else if ucase({?Sortfield}) = 'Group' then
else if ucase({?Sortfield}) = 'CAGE'

and created a group with this formula and it works fine till this level.

if the user selects Animal,
 the report should be first grouped by ************,then by group # and finally Animal.
if the user selects Group,
 the report should be first grouped by group #,then by ************ and finally Animal.

So i have created another formula and have a sub group an this formula and this also works fine.
My prob here is our co., wants to see Males first and then Females.I can't change the order in the group as if i do not, when the report is grouped on Group # , it will show as 4,3,2,1 as against 1,2,3,4'
Can anyone pl., throw light on this.
Old January 21st, 2005, 08:16 AM
ERC ERC is offline
Authorized User
Join Date: Jan 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts

Go into the Sort Expert and add the gender field to the bottom of the list on the right. This will mean that the group ordering is done first and then within each group, the data will be sorted by gender.

Let me know if this helps
Old January 21st, 2005, 10:51 AM
Authorized User
Join Date: Dec 2004
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts

not possible because when i select Animal ************ should be the first group. any way figured it out.having another formula for ************ and calling that in my group condition

Similar Threads
Thread Thread Starter Forum Replies Last Post
sorting member XSLT 25 July 13th, 2007 08:44 AM
SORTING pallone XSLT 3 October 29th, 2006 08:45 AM
Sorting sunny76 Excel VBA 2 September 19th, 2005 09:31 PM
Datagrid sorting by non alphabetical sorting? LLAndy VS.NET 2002/2003 1 July 15th, 2004 01:20 AM
Sorting? pbernardo XSLT 2 October 27th, 2003 11:34 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.