COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Chris_ on 22 Oct 2012 07:37:30 AM

Title: Create a list of records
Post by: Chris_ on 22 Oct 2012 07:37:30 AM
Hi,

I'm looking to create a report which will create a single record for each employee and within that which equipment they have.

The data at the moment is like this.

Joe Blogs - Car
Joe Blogs - Medical
Joe Blogs - Fuel

If I restructure to have it like this;

Joe Blogs

Car
Medical
Fuel


It looks like this

Joe Blogs

Car

-

Joe Blogs

Medical

-

Joe Blogs

Fuel

I understand why this is happening, but not being successful in working around it.  Any suggestions?

Thanks, Chris.
Title: Re: Create a list of records
Post by: andy_mason_84 on 22 Oct 2012 08:33:19 AM
If you have a list report

Column 1 - Employee
Column 2 - Equipment

Highlight column 1 and click the section button, will this give you the desired effect?
Title: Re: Create a list of records
Post by: Chris_ on 29 Oct 2012 05:45:45 AM
Hi Andy,

Thank you - what you have suggested works well, however I don't think I was very clear in my original post.

My intention is to create in effect a letter template which would look something like this.

Employee Name : <Emp Name>
Operating Unit : <Op Unit>

Assigned Equipment
<List of Equipment>

The sectioning works well for the individiauls name and a list of the equipment they have - however when I start adding tables and fields to get something like the example/format above it isn't coming out as well as I'd hoped.

Is there a better way I could do this?

Regards, Chris.
Title: Re: Create a list of records
Post by: andy_mason_84 on 29 Oct 2012 06:31:24 AM
Chris,

Can you show me what your report comes out like and an example of how you want it ...

From what you say below,  You want something pretty simple like the attached example, I have used different fields but functionality?

Supplier : <Supplier Name>
Company : <Company Name>

List of Products Supplied
<List of Products>
Title: Re: Create a list of records
Post by: bi4u2 on 29 Oct 2012 08:54:52 PM
Chris, it sounds like you need to create a repeater table. An a master-detail link between the Employee and the Equipment they have?
Title: Re: Create a list of records
Post by: mtirpude on 31 Oct 2012 04:50:41 AM
Hi,

Is that the way you want (Please find attached snapshot)?
Please find the sample xml code as well.

Regards,
Manish Tirpude
Title: Re: Create a list of records
Post by: mtirpude on 31 Oct 2012 04:51:40 AM
Please find the sample code attached as well.

Regards,
Manish Tirpude