Go Back   Forum - BIRT Exchange > Designing BIRT Reports Forums > Designing BIRT Reports

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2009, 08:14 AM
Junior Member
 
Join Date: Apr 2009
Posts: 29
Default embed a html link in a report

hi guys

i want to display a html link
<a href="http://www.website.com/">Visit my site!</a>
in my report.

it is stored in the DB as a string exactly as above, so i am wondering what do i have to do to my report in order to show this as a link.

the column that the data is in will have normal strings and also links

The Version of BIRT viewer being used is 2.3.2

Thanks in advance

Ian
Reply With Quote
  #2 (permalink)  
Old 06-22-2009, 11:25 AM
Senior Member
 
Join Date: May 2008
Posts: 4,493
Send a message via Yahoo to mwilliams
Default

Hi Ian,

Can you show a small sample of what the data looks like, so I can see where that item is in your dataSet? You should be able to use a text box with type html selected to display the link.
__________________
Regards,

Michael
http://twitter.com/mwilliams_actu
Reply With Quote
  #3 (permalink)  
Old 06-23-2009, 12:59 AM
Junior Member
 
Join Date: Apr 2009
Posts: 29
Default Type of data

Hi Michael

The data returned could look like the following

row 1: Ian
row 2: tom
row 3: <a href="url">Gmail</a>
row 4: <a href="url">Yahoo</a>
row 5: Sean


The data could be random what i mean is it could be a link or it could be text.
Is it possible to do the above having some links returned and some normal text.

If not for now i can have them all as links as that is the better solution at the minute.
Thanks
Reply With Quote
  #4 (permalink)  
Old 06-23-2009, 07:53 AM
Senior Member
 
Join Date: May 2008
Posts: 4,493
Send a message via Yahoo to mwilliams
Default

Ian,

If you replace the data element with a text element and put the following as the expression text, it should work.

<VALUE-OF format="HTML">row["data"]</VALUE-OF>

You can also see this in the image below. Make sure you choose type HTML for the text box.
Attached Images
File Type: jpg textelement.jpg (29.3 KB, 4 views)
__________________
Regards,

Michael
http://twitter.com/mwilliams_actu
Reply With Quote
  #5 (permalink)  
Old 06-23-2009, 08:15 AM
Junior Member
 
Join Date: Apr 2009
Posts: 29
Default Thank You

Michael Thanks a million
i had nearly got it i was missing format="HTML"

Many Thanks for your swift replies
Ian
Reply With Quote
  #6 (permalink)  
Old 06-23-2009, 09:59 AM
Senior Member
 
Join Date: May 2008
Posts: 4,493
Send a message via Yahoo to mwilliams
Default

Ian,

No problem! Glad to help.
__________________
Regards,

Michael
http://twitter.com/mwilliams_actu
Reply With Quote
Reply


Thread Tools
Display Modes




All times are GMT -7. The time now is 12:36 PM.
Powered by vBulletin Copyright © 2000-2010 Jelsoft Enterprises Limited.


Content Relevant URLs by vBSEO 3.1.0