Link to home
Start Free TrialLog in
Avatar of cookiejar
cookiejarFlag for United States of America

asked on

Crystal 2011 CONCATENATE rows' 'value INTO ONE STRING within a subreport

I have a subreport where multiple rows can be returned for a  department_id which is passed from the main report.

I have the department name in the detail section of the subreport.

What I would like to do, is each time a row is read concatenate the department name seperated by commas for example:
DepartmentA, DepartmentB, DepartmentC....
instead of
DepartmentA
DepartmentB
DepartmentC
Avatar of vasto
vasto
Flag of United States of America image

What is your database type?
Avatar of cookiejar

ASKER

ORACLE
I cannot help with Oracle. However if you search for "return comma separated values" you might find the right syntax and create a SLQExpression to get this data. This will allow you to avoid using subreport.

The other way ( with subreport) - you need to create a "whileprinting" formula  with a shared variable and append the department to the shared variable (in the details section ).
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial