Tips and Tricks
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Tips and Tricks
Message Icon Topic: Format in Group Tree Post Reply Post New Topic
Page  of 2 Next >>
Author Message
Msarvepalli
Newbie
Newbie


Joined: 21 Apr 2009
Online Status: Offline
Posts: 7
Quote Msarvepalli Replybullet Topic: Format in Group Tree
    Posted: 21 Apr 2009 at 12:50pm
I grouped my report based on the Client Numbers. Client number is a String, but was converted to number format. I could remove the decimals on Group name, but I still see them on the Toggle Group Tree. I am not sure how to change that format.
 
Any thoughts on how I should remove them.
 
Thanks in advance!
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 21 Apr 2009 at 1:49pm
Under File > Options > Fields Tab
Click on Number
Select NUmber Tab.
Change the default here to to what you want it to look like.
IP IP Logged
Msarvepalli
Newbie
Newbie


Joined: 21 Apr 2009
Online Status: Offline
Posts: 7
Quote Msarvepalli Replybullet Posted: 22 Apr 2009 at 5:59am
That works!!Smile. Thank you!
IP IP Logged
Msarvepalli
Newbie
Newbie


Joined: 21 Apr 2009
Online Status: Offline
Posts: 7
Quote Msarvepalli Replybullet Posted: 22 Apr 2009 at 9:55am

Dblank, your suggestion works when I preview the report on crystal, but I could still see the decimals on group tree when I preview the report from Crystal viewer. Not sure how to get those go away!!

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 22 Apr 2009 at 9:59am
You may be stuck with having to use them as a string with the viewer...
Why did you convert from a string to numeric to begin with? Any reason that precludes the use of a string?
IP IP Logged
Msarvepalli
Newbie
Newbie


Joined: 21 Apr 2009
Online Status: Offline
Posts: 7
Quote Msarvepalli Replybullet Posted: 22 Apr 2009 at 10:09am
Well, the client numbers that we use are not always numeric. Like, they could be 10.0001 or AAA.0003.
 
In my report, I am grouping only client numbers with numeric values though!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 22 Apr 2009 at 10:13am
How are you excluding the non numeric ones?
IP IP Logged
Msarvepalli
Newbie
Newbie


Joined: 21 Apr 2009
Online Status: Offline
Posts: 7
Quote Msarvepalli Replybullet Posted: 22 Apr 2009 at 10:20am
I have the files divided into two categories on all reports. Numeric falls under cat1, and non-numberic under cat2. So, I group these numeric files based on formula Int(Val(tablename.filenumber)) and when user chooses cat1 files, they only see this grouping. Hope I am clear!  
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 22 Apr 2009 at 10:22am
Gotcha.
In that case your select statement is independent of the conversion of string to an int so why not just leave it as a string and group on it. This will elminate the trailing .00...
IP IP Logged
Msarvepalli
Newbie
Newbie


Joined: 21 Apr 2009
Online Status: Offline
Posts: 7
Quote Msarvepalli Replybullet Posted: 23 Apr 2009 at 7:02am
I tried doing that, and now I see each file under its own group. Thanks for your continued support!
IP IP Logged
Page  of 2 Next >>
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.032 seconds.