Jump to content

BIRT Developer Center Download


Photo
- - - - -

Formatting a web hyperlink


  • Please log in to reply
5 replies to this topic

#1 mennovh

mennovh

    Junior Member

  • Members
  • PipPip
  • 24 posts

Posted 19 November 2007 - 05:08 AM

I have a report that contains web hyperlinks. Birt formats these link a normal hyperlink (i.e. blue underlined and purple underlined when visited). I want to remove/override this formatting. I have tried importing styles using the Import CSS style functionality but without sucess. I have read online that it ispossible to alter the default style of web hyperlinks but haven't found a working example. Has anyone done this before? Any help would be appreciated.

#2 Virgil

Virgil

    Administrator

  • Administrators
  • 1015 posts

Posted 19 November 2007 - 01:02 PM

You can right click the control that has the hyperlink and create a new style. I have been able to format the font size, color, background, border, etc... I still could not remove the underline with this method however.

To get the most control, you could also use a Text control instead of a data control... Set the formatting of the control to HTML and then try something like this:

" style="text-decoration:none;color:green;font-size:9pt"
onMouseOver="this.style.color = 'tan'"
onMouseOut="this.style.color = 'green'">
row["POSTALCODE"]

Virgil Dodson 
Actuate Corporation - The BIRT Company
http://developer.actuate.com


#3 susqc

susqc

    Junior Member

  • Members
  • Pip
  • 5 posts

Posted 14 August 2009 - 12:51 AM

But what if the link I want to format is to a drill down to another report???

#4 serafo

serafo

    Junior Member

  • Members
  • Pip
  • 4 posts

Posted 14 August 2009 - 01:11 PM

Hello Guys. I need to do link to reports based on the value of the slice of the pie I click. ie. The pie shows three, or more, slides. But there is one that I need to link to a specific report. The other ones can link to another Is it possible?? Thanls for your help!

#5 Alexey

Alexey

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 24 November 2010 - 02:49 PM

But what if the link I want to format is to a drill down to another report???

Hello, Any luck with removing underline from drill-through link?

#6 johnw

johnw

    Senior Member

  • Members
  • 772 posts

Posted 24 November 2010 - 11:53 PM

Hello, Any luck with removing underline from drill-through link?


Bookmark the link to modify, drop in a Text element and set to HTML, and use Javascript to modify by using a document.findElementById().

I suppose you could also modify it by putting in a script in the onRender event for the data element, and setting the this.getStyle() properties.

John

John Ward

BIRT Expert

 

Help us improve the BIRT Product and Community by taking this survey.