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


SH3230 (BOB member since 2010-10-25)

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

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:
[b]/* 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[/b]


buzz :australia: (BOB member since 2005-08-12)

Thanks for your reply.

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

Thanks
SH


SH3230 (BOB member since 2010-10-25)

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.

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
[list]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[/list]
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


buzz :australia: (BOB member since 2005-08-12)

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
CS.txt (13.0 KB)


SH3230 (BOB member since 2010-10-25)

here you go. search for lines with “BUZZ” so you know what was changed
CS.txt (14.0 KB)


buzz :australia: (BOB member since 2005-08-12)

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
WEBI-Sanpshot.png


SH3230 (BOB member since 2010-10-25)

Any help on the cell boarder to show Red. Still could not figure out.


SH3230 (BOB member since 2010-10-25)

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
[list]border-top-color
border-right-color
border-bottom-color
border-left-color[/list]


buzz :australia: (BOB member since 2005-08-12)

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.

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
CSS.txt (14.0 KB)


SH3230 (BOB member since 2010-10-25)

Hi Buzz,

Any Thoughts?

Thanks
SH


SH3230 (BOB member since 2010-10-25)

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…


Joe Szabo :us: (BOB member since 2002-08-19)