COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Ann on 03 May 2012 01:52:27 AM

Title: Copy conditional styling from one report to another.
Post by: Ann on 03 May 2012 01:52:27 AM
Is there some ways to copy conditional styling from one report to another?
Title: Re: Copy conditional styling from one report to another.
Post by: blom0344 on 05 May 2012 03:06:14 PM
No.. Conditional styling generates a host of entries within the report XML, a bit more complex than the action of copying datacontainers or queries across.  Just for fun we once tried to hack the XML to simulate copying conditional logic. Nasty business as the xml needs to be adjusted in several places..
Title: Re: Copy conditional styling from one report to another.
Post by: Ann on 07 May 2012 07:10:21 AM
When we apply conditional styling, where does this gets stored and in what format?
Title: Re: Copy conditional styling from one report to another.
Post by: blom0344 on 07 May 2012 07:49:23 AM
It is part of the report xml.  Everything about the report is stored in xml format
Title: Re: Copy conditional styling from one report to another.
Post by: Robert Kostecki on 30 Jun 2014 09:20:06 AM
I've encountered this challenge in C10.1 today. I needed to copy 55 conditional styles between two reports.

Here is the way to do it:

1. In the source report: Open menu Tool->Manage Conditional Styles
2. Select Styles press Ctrl-C
3. In the destination report: Open menu Tool->Manage Conditional Styles
4. Press Ctrl-V

Hope this helps.

Kind regards,
Rob
Title: Re: Copy conditional styling from one report to another.
Post by: cognostechie on 30 Jun 2014 02:12:45 PM
Amazing ! Does this mean that the source and destination report need to have the same layout?
Title: Re: Copy conditional styling from one report to another.
Post by: Kurt Teal on 21 Jul 2015 07:32:47 PM
Thank you Robert, Sir!
Title: Re: Copy conditional styling from one report to another.
Post by: mayank_sanghvi on 22 Jul 2015 12:30:19 AM
Quote from: cognostechie on 30 Jun 2014 02:12:45 PM
Amazing ! Does this mean that the source and destination report need to have the same layout?

I don't think so. I tried the same between one of my report with lots of stuff and a blank report.
I copied condition style from my main report and past it in a blank report.