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

New Global Classes Not Appearing in Global Classes List

Started by raywilliams, 12 May 2014 10:11:02 AM

Previous topic - Next topic

raywilliams

I want to add new global classes to the classes list in Report Studio. So far I have not been able to successfully make any new classes appear in the Global Classes list you choose from when applying a class to an element in a report. We're using Cognos 10.2, but the best instructions I found for adding new global classes was "How to add a new Global Class for use in all reports in Report Studio" http://www-01.ibm.com/support/docview.wss?uid=swg21340992. I modified GlobalReportStyles.css in the four locations mentioned in the article, as well as GlobalReportStyles_10.css. I also modified reportstudio_en.xml in both locations mentioned in the article. The server has been restarted on more than one occasion, but the new global classes I added do not show up.

I know about templates and layout component references, but I'd like to know how to add new global classes in 10.2. Will someone please point me in the right direction? If you need more information about the files I've edited and how, please let me know. I will give as much information as possible to help get this issue resolved. Thanks!

raywilliams

To help provide more detail in hopes of finding a solution, here is the file structure, along with the files, that I modified:

  • /bin/GlobalReportStyles_10.css
  • /bin/GlobalReportStyles.css
  • /msgsdk/reportstudio_en.xml
  • /reportstyles/GlobalReportStyles_10.css
  • /reportstyles/GlobalReportStyles.css
  • /webcontent/pat/res/reportstudio_en.xml
  • /webcontent/reportstyles/GlobalReportStyles_10.css
  • /webcontent/reportstyles/GlobalReportStyles.css
  • /webcontent/schemas/GlobalReportStyles_10.css
  • /webcontent/schemas/GlobalReportStyles.css

In each of the css files, I've added the following styles (class names changed to protect the innocent  :)):
/* ======================================================
Named styles:

New styles
------------------------------
u_anncinfo    : gray background for annc information
u_footer      : footer text
u_footertitle : Organization title in the footer
u_h1          : page header
u_h2          : blue label above text
u_lit         : litigation text
u_litbg       : red background for litigation warning
u_p           : text, for most information
u_tablehead   : table header
u_tablerow    : text for table body
u_tablerowodd : gray background for odd rows of table

====================================================== */


/* New styles */
/* ------------------------------ */

.u_anncinfo /* gray background for annc information */
{
background-color: #f3f3f3;
}

.u_footer /* footer text */
{
color: #0f3659;
font-family: 'Ubuntu', Trebuchet, Verdana, Arial, sans-serif;
font-size: 11px;
font-style: italic;
font-weight: 300;
}

.u_footertitle /* organization title in the footer */
{
color: #0f3659;
font-family: 'Comfortaa', Trebuchet, Verdana, Arial, cursive;
font-size: 11px;
font-style: italic;
font-weight: 400;
}

.u_h1 /* page header */
{
background-color: #0f3659;
color: #fff;
font-family: 'Ubuntu', Trebuchet, Verdana, Arial, sans-serif;
font-size: 18px;
font-style: normal;
font-weight: 300;
height: 33px;
}

.u_h2 /* blue label above text */
{
color: #386b95;
font-family: 'Ubuntu', Trebuchet, Verdana, Arial, sans-serif;
font-size: 11px;
font-style: normal;
font-weight: 500;
}

.u_lit /* litigation text */
{
color: #386b95;
font-family: 'Ubuntu', Trebuchet, Verdana, Arial, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: 400;
}

.u_litbg /* red background for litigation warning */
{
background-color: #ce2027;
}

.u_p /* text, for most information */
{
color: #000;
font-family: 'Ubuntu', Trebuchet, Verdana, Arial, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: 400;
}

.u_tablehead /* table header */
{
background-color: #366c96;
color: #fff;
font-family: 'Ubuntu', Trebuchet, Verdana, Arial, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: 400;
height: 35px;
}

.u_tablerow /* text for table body */
{
color: #333;
font-family: 'Ubuntu', Trebuchet, Verdana, Arial, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: 400;
height: 36px;
}

.u_tablerowodd /* gray background for odd rows of table */
{
background-color: #f3f3f3;
}


In each of the xml files, I've added the following entries:
<string id="IDS_CLASS_u_anncinfo">U - ANNC Information Background</string>
<string id="IDS_CLASS_u_footer">U - Footer Text</string>
<string id="IDS_CLASS_u_footertitle">U - Footer Title Text</string>
<string id="IDS_CLASS_u_h1">U - Page Header</string>
<string id="IDS_CLASS_u_h2">U - Label Above Each Entry</string>
<string id="IDS_CLASS_u_lit">U - Litigation Text</string>
<string id="IDS_CLASS_u_litbg">U - Litigation Background</string>
<string id="IDS_CLASS_u_p">U - Text Entries</string>
<string id="IDS_CLASS_u_tablehead">U - Table Header</string>
<string id="IDS_CLASS_u_tablerow">U - Table Body Text</string>
<string id="IDS_CLASS_u_tablerowodd">U - Table Body Odd Row Background</string>


The entries above were added starting on line 1834, right below <string id="IDS_CLASS_cci">Statistics Output Chart</string> Can anyone tell me if I've done something incorrect here? Again, thanks for any help.

sascha

Hi everybody,

I ran into the same Problem. Added a very small new style and can't get it to RS.
Has anyone an idea? Ray, did you solve that problem?

Best regards,
Sascha

raywilliams

Sascha, the problem did get fixed and I didn't have to change anything else with the classes. I DID, however, have to clear my cache and all that good stuff from Chrome for the new classes to show up. It was that easy. For some reason, Chrome will not show even other CSS changes in Cognos without me clearing the cache. I know this is super late to reply but it's here in case someone else runs across this in the future.