BOB: Business Objects Board
Not endorsed by or affiliated with SAP

Register | Login 

Follow BOB on Twitter! 
Follow BOB on Twitter! (Opens a new window)  

General Notice: No events within the next 45 days.

how to make custom default color


 
Search this topic... | Search Web Intelligence... | Search Box
Register or Login to Post    Forum Index -> Building Reports -> Web Intelligence  Previous TopicPrint TopicNext Topic
Author Message
SH3230
Principal Member
Principal Member



Joined: 25 Oct 2010

Posts: 492



PostPosted: Wed Mar 13, 2019 12:15 pm 
Post subject: how to make custom default color

Hello All,

I have a requirement to make the custom default color in webi. When the user select the objects it should come with red back ground and white in text. Currently BO is showing Blue and White.

Want to change default colors for Webi Reports.

Thanks for your help.
SH
Back to top
buzz
Principal Member
Principal Member



Joined: 11 Aug 2005

Posts: 181
Location: Sydney


flag
PostPosted: Wed Mar 13, 2019 5:23 pm 
Post subject: Re: how to make custom default color

Here is a link to an older thread that will provide pointers to how to change the CSS file that determines WebI defaults

https://archive.sap.com/discussions/thread/2110301

You want to change the following part of the CSS file

Code:
TABLE > :zone(header) > CELL {      /*  Settings for header cells in a table  */
   font-weight-bold:yes;
   color:#FFFFFF;
   background-fill:bitmapAndColor;

/* remove header blue image, replace with red background color */

   background-color:#FF0000;  /* Color used also for DHTML as basis for selection feedback interpolation */

/*   comment out the blue image that is the default background-image: boimg://TopHeaderBlue.png; /* you can use a gradient (background-fill must be equal to bitmap or bitmapAndColor ). Here is a sample : -gradient(linear, top left,

bottom left, from(#fbb700), to(#f0ab00)); */


The following is what i added/changed:
/* remove header blue image, replace with red background color */

background-color:#FF0000; /* Color used also for DHTML as basis for selection feedback interpolation */

/* comment out the blue image that is the default
Back to top
SH3230
Principal Member
Principal Member



Joined: 25 Oct 2010

Posts: 492



PostPosted: Fri Mar 15, 2019 10:36 am 
Post subject: Re: how to make custom default color

Thanks for your reply.

Is there way each users can set their our own default color as needed?

Thanks
SH
Back to top
JohnBClark
Forum Enthusiast
Forum Enthusiast



Joined: 27 Mar 2007
ASUG Icon
Posts: 1019
Location: Appleton, WI USA


flag
PostPosted: Sun Mar 17, 2019 8:44 am 
Post subject: Re: how to make custom default color

SH3230 wrote:
Is there way each users can set their our own default color as needed?
No, the Cascading Style Sheet (CSS) is a system wide configuration. There are not individual preferences to color schemes.

They could create a template report and customize that report and then always start with that template report to accomplish the same thing.

_________________
BusinessObjects BI4.2sp4, SQL Server 2016 (CMS)
Clustered for fail over redundancy
Reporting Tools: Crystal Reports 2016sp4, Web Intelligence
Operating System: Windows 2016 running on VMWare
Reporting databases: SQL Server, Teradata, DB2, Oracle
Information Steward 4.2sp10
History: BO5, BO6, XIR2, XI3.1, BI4.1.x
Back to top
buzz
Principal Member
Principal Member



Joined: 11 Aug 2005

Posts: 181
Location: Sydney


flag
PostPosted: Sun Mar 17, 2019 5:28 pm 
Post subject: Re: how to make custom default color

Yes, an individual user can have a CSS file that they apply to a WebI document as required

I'll provide the steps for WebI 4.2 HTML editor
    On Properties tab click Document
    under Default Style click Change Default Style
    under Import Style... click Choose File
    navigate to the CSS file and click Open
    click Close on the Default Style window
    click OK on the Document Summary window

The style will be applied. Any object that has not been changed from default in the document will be updated with the new defaults in that CSS
Back to top
SH3230
Principal Member
Principal Member



Joined: 25 Oct 2010

Posts: 492



PostPosted: Wed Mar 20, 2019 12:03 pm 
Post subject: Re: how to make custom default color

Hello Buzz,

I want to modify attached CS file as below. Back ground color should be Red and Text should be Gold

Column--Red RGB-132,0,0

Text--Gold RGB 255 199 0

Thanks
SH
Back to top
buzz
Principal Member
Principal Member



Joined: 11 Aug 2005

Posts: 181
Location: Sydney


flag
PostPosted: Thu Mar 21, 2019 5:48 pm 
Post subject: Re: how to make custom default color

here you go. search for lines with "BUZZ" so you know what was changed
Back to top
SH3230
Principal Member
Principal Member



Joined: 25 Oct 2010

Posts: 492



PostPosted: Fri Mar 22, 2019 12:27 pm 
Post subject: Re: how to make custom default color

Thank You Buzz for your help. Please find the attached screen shot. When I use the updated CSS file, the column background is red and text is gold.
Now, I need one more thing

1.If you noticed the column boarder is still blue. It should be red.

Thanks for your help.
SH
Back to top
SH3230
Principal Member
Principal Member



Joined: 25 Oct 2010

Posts: 492



PostPosted: Tue Mar 26, 2019 8:52 am 
Post subject: Re: how to make custom default color

Any help on the cell boarder to show Red. Still could not figure out.
Back to top
buzz
Principal Member
Principal Member



Joined: 11 Aug 2005

Posts: 181
Location: Sydney


flag
PostPosted: Tue Mar 26, 2019 6:02 pm 
Post subject: Re: how to make custom default color

Hi
You'll need to take the rest on yourself. I'm only providing starting points here so you can help yourself

To change Border Colours you need to edit following settings in the CSS
Depending on which type of borders you want to change you will need to reassign appropriate colours in different sections
    border-top-color
    border-right-color
    border-bottom-color
    border-left-color
Back to top
SH3230
Principal Member
Principal Member



Joined: 25 Oct 2010

Posts: 492



PostPosted: Tue Mar 26, 2019 7:09 pm 
Post subject: Re: how to make custom default color

Thanks for your feedback. I got it now.

After using the updated CSS file in the report. If user want to change the font to different color they are getting this error.

Code:
You must Specify a valid image URL


They will no longer be able to override a cell with any other formatting

For the attached CS,I am able to change the font color in the report but I need white text in color which is displaying black.

Any thoughts?

Thanks
SH
Back to top
SH3230
Principal Member
Principal Member



Joined: 25 Oct 2010

Posts: 492



PostPosted: Sun Mar 31, 2019 7:30 pm 
Post subject: Re: how to make custom default color

Hi Buzz,

Any Thoughts?

Thanks
SH
Back to top
Joe Szabo
Principal Member
Principal Member



Joined: 19 Aug 2002
ASUG Icon
Posts: 350
Location: Maryland/DC/Virginia


flag
PostPosted: Tue Apr 09, 2019 7:55 am 
Post subject: Re: how to make custom default color

SH,
Sounds as if you are looking for report templates for users. Our environment provides this with a template selector based on available universes to user profiles (lots of custom code to do this), though all templated (by universe) reports come up with the same style/format/logo/etc. Templates our bound to each of our universes that require users to add objects into the query panel and then into the report.

I imagine you may be able to create a set of templated reports in a public folder for users to access which may be a workaround to suit your need (albeit a clumsy one). Good luck...

_________________
Kind regards,
Joe Szabo, BOCP-BOE
BOE versions : 4.1.4 | 5.x | 6.x | XI r2 | XI 3 | XI 4.2.5

Its usually better to go too slow and wish you were going faster than to go too fast and wish you were going slower...
Back to top
Display posts from previous:   
Register or Login to Post    Forum Index -> Building Reports -> Web Intelligence  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 5 Hours
 
Jump to:  

Index | About | FAQ | RAG | Privacy | Search |  Register |  Login 

Get community updates via Twitter:

Not endorsed by or affiliated with SAP
Powered by phpBB © phpBB Group
Generated in 0.0308 seconds using 17 queries. (SQL 0.0035 Parse 0.0009 Other 0.0263)
CCBot/2.0 (https://commoncrawl.org/faq/)
Hosted by ForumTopics.com | Terms of Service
phpBB Customizations by the phpBBDoctor.com
Shameless plug for MomentsOfLight.com Moments of Light Logo