Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Display all items in a group with no data Post Reply Post New Topic
Author Message
Tem0n
Newbie
Newbie
Avatar

Joined: 30 Oct 2008
Location: Canada
Online Status: Offline
Posts: 1
Quote Tem0n Replybullet Topic: Display all items in a group with no data
     Posted: 30 Oct 2008 at 1:47pm

I creating a report that has a 3 level group and in the final group there are 4 priorities of work.  My issue is that i need to display all 4 priorities regardless if there is data for the group or not.  Here is an example:

Parent Group A:
         Sub Group 1
                  Sev 1    1.1
                  Sev 2    2.3
                  Sev 3    0.0
                  Sev 4    8.0
 
Currently, the bolded "Sev 3" will only display when it has data but i need to make all 4 Sev group items appear in every even instance of "Sub Group 1" regardless if there is data for that group or not.
 
If anyone can point me in the right direction to accomplish this it would be greatly appreciated.
 
Thanks,
T
                 
               
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 07 Nov 2008 at 7:03am
If you use a stored proc, it shouldn't be a problem, but if you connect directly to the tables, it won't happen. 
 
I am assuming that no data does not mean that it is null or 0, but that the record does not exist.  If you connect to the tables directly, Crystal does an inner join.  If the record doesn't exist, there is nothing to join on, so there is no record and no way to create one.
 
If I off base, let me know.  If it is just a null value, then if you use a stored proc update its value to 0(zero) or if you connect directly set the option (File, Options, Reporting(tab)) 'Convert Database nulls values to Default' to checked.
 
Hope that this helped
IP IP Logged
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