Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Groupings in Crystal Report XI Post Reply Post New Topic
Author Message
genus
Newbie
Newbie
Avatar

Joined: 17 Jul 2011
Location: Philippines
Online Status: Offline
Posts: 2
Quote genus Replybullet Topic: Groupings in Crystal Report XI
     Posted: 17 Jul 2011 at 9:42pm
Hello All,
 
am new to crystal report and i got this problem, can anybody help me with this?..
 
am going to make a report in crystal with these predefined conditions:
 
         The report can be sorted by Vendor #, Purchase Order # or Item #1.       If sorted by Vendor #
     a.       Group Header: Vendor # (Company Name)
     b.      Details (in this order): PO #, Request Date, Warehouse, Item #, Unit of Measurement, Order Qty, Unit Cost, Discount Rate,  Ext. Net Cost
 
2.       If sorted by Purchase Order #
      a.       Details (in this order): PO #, Vendor #, Request Date, Warehouse, Item #, Unit of Measurement, Order Qty, Unit Cost, Discount Rate,  Ext. Net Cost
3.       If sorted by Item #
  a.       Group Header: Item # (Description)
  b.      Details (in this order): Warehouse, PO #, Vendor #, Request Date, Order Qty, Unit Cost, Discount Rate,  Ext. Net Cost
 
What I have done, was to make a stored procedure that has a parameter for the sorting field and on the crystal report I have 3 Group headers (GH1 for Vendor# GH2 for PO# and G3 for Item#) , however when providing a parameter that will satisfy the sorting for Item#, the Item # won't be able to group by itself.
 
That's my problem, I want to group the GH2 and GH3...
 
help is highly appreciated. Thank you.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 18 Jul 2011 at 11:19am

i assume your detials order is based on a column style order on each detail row

I would just crate a param to get the grouping type you want
create a formual field to insert the value from the row to group on
eg.
if param = 'Vendor' then table.vendor else if param='PO' then PO else if if param='Item' then table.item else 'Missing Grouping'
then create 2 versions of your details
a
b
c
and order your detaikls how you want for each version and conditionally suppress 2 of the detail version based on your param
IP IP Logged
genus
Newbie
Newbie
Avatar

Joined: 17 Jul 2011
Location: Philippines
Online Status: Offline
Posts: 2
Quote genus Replybullet Posted: 18 Jul 2011 at 2:58pm
Hi DBlank,
 
Thank you much for your ideas...got it now!...
 
Best Regards,
 
-genus
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