Home DevShare Designing BIRT Reports

Removing Underline from Hyperlink

Share

by mwilliams

Forum - 10,000 postsBlog - 100 postsDevShare - 100 postsPoll Voter
Posted 14 Jan 2011 - 08:38 AM

(0)  (0)   (873 views)

Quick tip showing how to create a hyperlink without the underline

Birt Version:-1.0,2.0,2.1,2.2,2.3,2.6

When creating a hyperlink with BIRT, it's always underlined.  Sometimes you don't want to include an underline.  One way to get around this is to create your own hyperlink in a text control using href.  If you were going to link to google.com, you'd simply put the following inside a text element of type HTML:

<a style="text-decoration: none;" href="http://www.google.com">hyperlinkText</a>

The part that removes the underline is the "text-decoration" being set to none.  If linking to another report, you could just build your link with the dynamic text tag within the text control and do the same as above.


Forum - 50 posts

peraka

Posted: 14 Dec 2011 - 08:32 AM

How this URL is built for the child report dynamically?

Forum - 100 postsLeaderboard - 1 time

actuser9

Posted: 24 Jul 2012 - 03:31 PM

Michael, Is it possible to get a internal bookmark for the href in the code above? If so, how?

Forum - 10,000 postsBlog - 100 postsDevShare - 100 postsPoll Voter

mwilliams

Posted: 24 Jul 2012 - 05:07 PM

I've got an answer for you, actuser9, but it's a little long to put right here, with the limited character space. Can you ask this question in the forums and then post the link in here so others can find the question?

Forum - 100 postsLeaderboard - 1 time

actuser9

Posted: 25 Jul 2012 - 06:00 AM

Sure Michael,here it is. http://www.birt-exchange.org/org/forum/index.php/topic/27432-hyperlinking-a-text-element-to-internal-bookmark/

Forum - 1 post

drogina

Posted: 15 Oct 2012 - 01:43 PM

Could this work with a dynamic url situation? Example: if (row["discriminator"]="Project Log") { <a style="text-decoration: none; color: black;" href=""><VALUE-OF>row["title"]</VALUE-OF></a> } else { <VALUE-OF>row["title"]</VALUE-OF> }

Forum - 10,000 postsBlog - 100 postsDevShare - 100 postsPoll Voter

mwilliams

Posted: 15 Oct 2012 - 03:39 PM

Can you explain a little more? Are you meaning that depending on a certain field's value, you'd like to have the underline?

Forum - 1 post

drogina

Posted: 16 Oct 2012 - 05:52 AM

Depending on a certain field's value, I want the text of that field to be a hyperlink. I have implemented this code in the onCreate method of that cell, but now I need to be able to change the color etc. of that hyperlink.
 
Filter More