Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Non-hierarchical Design Post Reply Post New Topic
Author Message
Bob Lucas
Newbie
Newbie
Avatar

Joined: 26 Jun 2009
Location: United States
Online Status: Offline
Posts: 3
Quote Bob Lucas Replybullet Topic: Non-hierarchical Design
     Posted: 26 Jun 2009 at 4:32pm
How do a create a report that is not hierarchical, but collects data from a complex relational model? The problem: I've selected the subset of primary records that drives the report (usually only one or two) -- call them Volumes. There multiple parallel sets of data (chapters) related to each primary record. So the report is grouped by volume, and each chapter is a subreport.
 
Here's the problem: The Chapters reference Paragraphs, each of which is to be presented sequentially in the report. For example, Chapter 1 has 3 clusters of data ("paragraphs"), all drawn from the same (or overlapping) data structures. Each paragraph could be its own subreport, but Crystal doesn't let you nest subreports. Grouping within the Chapter doesn't work because the data is not being presented hierarchically, but as parallel clusters.
 
I would appreciate any ideas on how to design such a report. 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 27 Jun 2009 at 6:31am
Having a little trouble understanding what your issue is here.
Even though you are stating is non-heirarchical I am reading this as you want to display it in a heirarchical way.
I think in general if you can avoid subreports you should. Is there an issue if you join the tables in the main report rather than using a sub-report? If so can you address it using a stored proc or views to manipulate the data in the correct related rows?
IP IP Logged
Bob Lucas
Newbie
Newbie
Avatar

Joined: 26 Jun 2009
Location: United States
Online Status: Offline
Posts: 3
Quote Bob Lucas Replybullet Posted: 29 Jun 2009 at 8:57am
It's hard to explain without getting too technical. The data source is a database of pharmaceutical regulatory filings. The object is to generate a report for a particular filing, which may be related to one or more events, and one or more actual submissions. Underlying all the activity is the technical data that was submitted.
 
Aside from header information about the product and country where the filing was made, the report is to show, in sequential sections, the associated events (with the sequence of statuses through which they have passed), the associated submissions (with the sequence of statuses through which they have passed), the associated drug product information, packaging information, labeling information, manufacturers, and (for each active ingredient) technical information and manufacturers.
 
The only dependency between sections of the report is that all the data is related to a code number on the event(s). There is a potential many-to-many relationship between events and and the technical information on drug products and substances. There is a potential many-to-many relationship between events and individual submissions, although more typically it is one event to multiple submissions.
 
The subreport construct lends itself to this, because each section is really an independent report, related to the others only through the event code.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 29 Jun 2009 at 11:52am
if you have access in the DB you would need to create views or stored procedures to get your data into the correct unduplicated row level info after joining it. As you know crystal will not put a subreport in a subreport so you either go ahead and join at least one of yout tables in the main report and dipslay that data and then drop the last one in as a subreport or join it all outisde crystal and pare it down before bringing it into crystal (views or sps).
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