Then make the text colour white, set the properties of the cell to “Read as: HTML”, and then make the cell as small as possible (to effectively hide it).
That is pretty cool that you can include cascading style sheet instructions right in the in the cell. I was able to put that trick to good use. I am on XIR2 SP1 so technique works in that version as well.
Well it’s not just CSS that you can include in a cell. Any cell that has the “Read as HTML” attribute, you can include pretty much any client-side technology (Javascript for instance), and I dare say that if your web-server was so configured, that you could also include server-side technologies … I’ve only really scratched the surface with this. I mean I tried to include some Javascript in a cell that would hide tables, but for some reason, the placement of the DIV tags around the tables went awry for reasons best known to the Business Objects HTML render-engine!? So it appears to have it’s limits, but it can also prove to be very useful though
Hi Peter,
i am working on the open document the default colour for the hyperlink is blue . i just want to change the default colour to any other colour. is there any way i can change the colour of the text.
The default colour for visited/unvisited links.
[list=1:58c99e50ad]
[:58c99e50ad]Open/Create document
[:58c99e50ad]Turn on View Structure
[:58c99e50ad]Click somewhere in an empty part of the document
[:58c99e50ad]Go to Properties > Appearance
[*:58c99e50ad]Change default colours
[/list]
Hi Peter,
Thank you for the replay.
in the properties whenever i select Read cell content as HYPERLINK the default colour is changing to blue.if i change in the appearance default colours also the default hyperlink BLUE colour is not changing.
I’ve not checked this, but I’m assuming that the colours are defined by the browser (if not specified by the HTML generated when publishing a webi report).
So that’s why I tend to use the CSS route for changing colours (amongst other things).
To change hyperlink colours I would place a cell somewhere suitable on the report page and add in the following code:
Just replace RGB with the values for your chosen colour or replace #RGB with a colour name in quotes.
The above code will also remove the hyperlink underlining on a standard hyperlink and a visited hyperlink, and I think when you hover the mouse over the hyperlink the underlining will return. If it doesn’t you may need to add in the “text-decoration: underline” into the a:hover bit