cookiejar
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
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
What is your database type?
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 ).
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.