BIRT Exchange Forum: Formatting a web hyperlink - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Formatting a web hyperlink Rate Topic: -----

#1 User is offline   mennovh Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 20
  • Joined: 19-November 07


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.
0

#2 User is offline   Virgil Icon

  • Administrator
  • View blog
  • Group: Members
  • Posts: 985
  • Joined: 16-July 07


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 – Developer Evangelist Group
Actuate Corporation – The BIRT Company™
http://www.actuate.com | http://www.birt-exchange.org
0

#3 User is offline   susqc Icon

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 29-July 09


Posted 14 August 2009 - 12:51 AM

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

#4 User is offline   serafo Icon

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 09-August 09


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!
0

#5 User is offline   Alexey Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 24-November 10


Posted 24 November 2010 - 02:49 PM

View Postsusqc, on 14 August 2009 - 12:51 AM, said:

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?
0

#6 User is offline   johnw Icon

  • Senior Member
  • View blog
  • Group: Members
  • Posts: 712
  • Joined: 08-May 08


Posted 24 November 2010 - 11:53 PM

View PostAlexey, on 24 November 2010 - 10:49 PM, said:

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
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users