If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Different default List styles in Cognos?

Started by willg, 29 Oct 2013 04:28:35 AM

Previous topic - Next topic

willg

Hi Cognos Guru's..

I'm currently having a very strange situation where lists in reports that I make, have a different look to them to my co-worker. (Who is using the same installation of Cognos etc.)

Below are a picture of the two default list styles, his being the one on top, mine being the one below;



It's also not just the colours that differ, I've tried changing both lists to having the same color scheme etc, but they still look slightly different, the blue compared to the grey, and my lists generally just look smoother. This is not ideal when using drill-down functionality and such. I have also tried comparing the properties pane of the two lists to try and find discrepancies between the two, but had no luck.

If anyone could shed some light on this it would be really appreciated.

Cheers,
Will.

BigChris

Your colleague is using the Cognos 8 format / template and you're using the Cognos 10 format. When you're colleague creates a new report just check to see what steps he takes - I imagine he's selecting a different template to the one that you're using.

willg

OK that makes sense, thanks for the quick reply. Do you know if there is any way to edit the template once a report has been created?

BigChris

There isn't a quick and simple way to use a different template that I know of once the report has been created. What you can do though is edit the XML for the report to bring it up to Cognos 10 format. Edit the report that's in Cognos 8 format and view the XML. Copy it to the clipboard then paste it into somthing like Notepad++. The start of the file will look something like this:

<report xmlns="http://developer.cognos.com/schemas/report/9.0/" expressionLocale="en-gb"><!--RSU-SPC-0093 The report specification was upgraded from &amp;amp;quot;http://developer.cognos.com/schemas/report/6.0/&amp;amp;quot; to &amp;amp;quot;http://developer.cognos.com/schemas/report/9.0/&amp;amp;quot; at 2013-2-5. 20:32:13-->
<modelPath>/content/folder[@name='Packages pre Cognos 10']/package[@name='Reporting Sales Order Line']/model[@name='model']</modelPath>
<drillBehavior modelBasedDrillThru="true"/>
<queries>
<query name="QryDetails">


What you need to do is insert the style version element: useStyleVersion="10"

<report xmlns="http://developer.cognos.com/schemas/report/9.0/" useStyleVersion="10" expressionLocale="en-gb"><!--RSU-SPC-0093 The report specification was upgraded from &amp;amp;quot;http://developer.cognos.com/schemas/report/6.0/&amp;amp;quot; to &amp;amp;quot;http://developer.cognos.com/schemas/report/9.0/&amp;amp;quot; at 2013-2-5. 20:32:13-->
<modelPath>/content/folder[@name='Packages pre Cognos 10']/package[@name='Reporting Sales Order Line']/model[@name='model']</modelPath>
<drillBehavior modelBasedDrillThru="true"/>
<queries>
<query name="QryDetails">


Select the whole file once you've done that and copy it to the clipboard. Then go back to Cognos and from the Tools menu select Open Report from Clipboard...it should now have the right look and feel.

C

willg

That wasn't really difficult to change at all to be honest, and worked perfectly! Thank you very much for your help.  :)