Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 14, 2012 01:02 PM by Ajay2707
Member
106 Points
164 Posts
Aug 08, 2012 04:36 PM|LINK
I have a datatable with the data as below. Name Pension SS SSI
James True True False
Smith True False True
Lisa False True False
I need to gruop data based on more than one column and display the data ...
Pension
James
Smith
SS
Lisa
SSI
How do I achieve this using Crystal Reports(VS2008)?
Contributor
5028 Points
968 Posts
Aug 14, 2012 01:02 PM|LINK
Hi Bing25,
Your problem is solved or not?
If not then, first it is good to get data from database (if you use db) . So it simply and nothing to be done in report side.
But still you want to in crystal report
Then make a group of variable, also take a variable and set int the group , also in variable code as per below.
(the same code for header also do)
StringVar ReturnResult; if {YourTable.Pension} = 'True' then ReturnResult := {YourTable.Name}; else if {YourTable.Pension} = 'True' then ReturnResult := {YourTable.Name}; .. .. else ReturnResult := {YourTable.Name}; return ReturnResult ;
bing25
Member
106 Points
164 Posts
Single Group based on Multiple Columns
Aug 08, 2012 04:36 PM|LINK
I have a datatable with the data as below.
Name Pension SS SSI
James True True False
Smith True False True
Lisa False True False
I need to gruop data based on more than one column and display the data ...
Pension
James
Smith
SS
James
Lisa
SSI
Smith
How do I achieve this using Crystal Reports(VS2008)?
Ajay2707
Contributor
5028 Points
968 Posts
Re: Single Group based on Multiple Columns
Aug 14, 2012 01:02 PM|LINK
Hi Bing25,
Your problem is solved or not?
If not then, first it is good to get data from database (if you use db) . So it simply and nothing to be done in report side.
But still you want to in crystal report
Then make a group of variable, also take a variable and set int the group , also in variable code as per below.
(the same code for header also do)
StringVar ReturnResult; if {YourTable.Pension} = 'True' then ReturnResult := {YourTable.Name}; else if {YourTable.Pension} = 'True' then ReturnResult := {YourTable.Name}; .. .. else ReturnResult := {YourTable.Name}; return ReturnResult ;