Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Dynamic layout Post Reply Post New Topic
Author Message
sambolino
Newbie
Newbie


Joined: 19 Sep 2008
Location: United States
Online Status: Offline
Posts: 3
Quote sambolino Replybullet Topic: Dynamic layout
     Posted: 19 Sep 2008 at 7:47am
We need to develop a Crystal Report that is dynamic in nature.  The user will choose a marketing regional sales manager.  We'll need to query the source database to pull the data saved at the division, region, and state level; as well as saved data for the territory sales managers reporting to that regional sales manager.  I can see us using the Command object to control the SQL and retreive all relavant data. 
 
My problem is how to dynamically display the data on the report.  The business specifications are to show header/column information for each state and regional sales manager within the state.   RSM Steve may cover 3 states with 6 TSMs - so his columns would need (for example) 'state 1', 'TSM 1', 'TSM 2', 'state 2', 'TSM 3', 'state 3', 'TSM 4', 'TSM 5', 'TSM 6'.  RSM Bill may cover only a different state with 2 TSMs - so his columns might be 'state 4', 'TSM 7', 'TSM 8'.  Again the data in the columns isn't the headache right now, it's how to dynamically exhibit the columns. 
 
I'm not even sure if Crystal XI could handle this.  Let's say there is a maximum of 60 possible columns (for each possible state and TSM).  Is there a way to suppress the columns with no corresponding data returned from the Command object query?   
 
Thanks for viewing this post!    
Sam in Northern Carolina
IP IP Logged
keval300
Newbie
Newbie
Avatar

Joined: 18 Jul 2008
Location: India
Online Status: Offline
Posts: 24
Quote keval300 Replybullet Posted: 21 Sep 2008 at 11:59pm
Hi,
 
There are options to suppress...
Goto "Section Expert". write the formula in "X-2"
 
format for eg:
 
If {field}>2 then True
 
now whenever the field values are greater than 2 then the section will b suppressed.
if the "field" values are lesser than 2 then the section will not be suppressed.
 
 
Enjoy...
IP IP Logged
sambolino
Newbie
Newbie


Joined: 19 Sep 2008
Location: United States
Online Status: Offline
Posts: 3
Quote sambolino Replybullet Posted: 22 Sep 2008 at 5:24am
So, my columns would need to rotate and become rows.
Sam in Northern Carolina
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