BIRT Exchange Forum: embed a html link in a report - BIRT Exchange Forum

Jump to content


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

embed a html link in a report Rate Topic: -----

#1 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 22 June 2009 - 07:14 AM

hi guys

i want to display a html link
Visit my site!
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
0

#2 User is offline   mwilliams 

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 5565
  • Joined: 16-May 08

Posted 22 June 2009 - 10:25 AM

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

#3 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 22 June 2009 - 11:59 PM

Hi Michael

The data returned could look like the following

row 1: Ian
row 2: tom
row 3: Gmail
row 4: Yahoo
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
0

#4 User is offline   mwilliams 

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 5565
  • Joined: 16-May 08

Posted 23 June 2009 - 06:53 AM

Ian,

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

row["data"]

You can also see this in the image below. Make sure you choose type HTML for the text box.

Attached File(s)


0

#5 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 23 June 2009 - 07:15 AM

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

Many Thanks for your swift replies
Ian
0

#6 User is offline   mwilliams 

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 5565
  • Joined: 16-May 08

Posted 23 June 2009 - 08:59 AM

Ian,

No problem! Glad to help.
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