cancel
Showing results for 
Search instead for 
Did you mean: 

Hyperlink on image within webi report (creating a button)

Former Member
0 Kudos

Hello,

is there a way to add a hyperlink on an image within a webi report?

We want to make a "help"-button within the webi report.

Regards,

Kathi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Do want to add hyperlink in report level ? Then it is possible first u have to do is

drag and drop empty blank cell goto>properties>appearance>background image-->select image from file and then use hyperlink and then add links like www.google.com and then parse it . so that when u click on image it will navigate to google.com

Note: if image is not uploading then ask ur admin to add this image in Bo repository.

regards

Sunil

Former Member
0 Kudos

Hi,

first thank for your answer. That's what I did in my frist try, with the only difference I used an image from URL not from file.

Now I tried it with image from file like you said, but again it doesn't work!

When I click on the image nothing happens, there's no link. When I write a text in the cell, the link works fine.

Webi doesn't put the link on the image i think, because when I write a text like GOOGLE in the cell, the cells value is:

<a href="www.google.at" title="" target="_blank" nav="web">GOOGLE</a>

When I only use a background image the cell value is:

<a href="www.google.at" title="" target="_blank" nav="web"></a>

It seems like there's missing something. Do you know what's the problem here?

Regards,

Kathi

arijit_das
Active Contributor
0 Kudos

Try like this:

<a href="www.google.at" > 
    <im g src = "URL for the image" /> 
</a>

Former Member
0 Kudos

Hi Kathi

You would like to use Image URL right ? Then

Copy Your Image in *Installation directory/BusinessObjects11.5/images *

And then use Background Image check image as URL and enter ur image name with extension (help.gif)

And add hyperlink and write www.google.com and parse it . U can rename it .According to ur requirements.

Note :IN properties>display> read cell content as Hyperlink

It worked fine on my system .

Regards

Sunil

Former Member
0 Kudos

Hi!

@Sunil

It doesn't matter for us if image comes from URL or file. We haven't decided our strategy for using pictures for now.

But I think for my problem it shouldn't make a difference where the image comes from. Is that right? Or do you think the same?

Thank you very much for your answers. Exactly that's what I did, and what I excepted when I read webi-guide, but it's really strange: it doesn't work!

Any other ideas?

@pumpactionshotgun: thank you, first it doesn't work either, because the cell value changes back immediately to the old value when I leave the cell (it takes the value of the hyperlink properties)!

But when I tried again one hour later it finally worked! Thanks!

Regards,

Kathi

Edited by: Katharina Ploderer on Dec 19, 2011 1:24 PM

Former Member
0 Kudos

Hi Kathi

What do u mean that it doesnt work ? Actually what you are taking to get ur requirement ?

if you use image URL

when you copy picture in server repository in a specified path earlier i said in thead then when ever yuo open infoview portal anywhere you will be able to display that image

if you use image from file

You will be seen that image only in that particular system .

whether you want to use hyperlink to navigate to other report(help) ??

if it is not helpful then please give your requirement in detail .so that we be able to help you

regards

Sunil

Former Member
0 Kudos

Hi Sunil

Sorry, when I didn't explain my problem detailed enough to understand it!

To get the image into the report is no problem. That works fine!

The problem is, that I want to put a link on that image. So when you click on the image in the report, there opens a new browser window on for example www.google.com.

For example I add hyperlink to a cell with text. The link works.

When I add a hyperlink to a cell with ONLY an image (background image), there is no linking when clicking on the image.

I did like you said, but no linking. When you hover the mouse over the picture the mouse-pointer does not change, like when you normal hover with mouse over a link. So that says to me, that there is no link on the picture.

Do you understand my problem?

Regards,

Kathi

Former Member
0 Kudos

Hi,

I am posting in this subject as i have the same problem as you.

When :

-i create an empty cell

-i had a picture as background image

-transform this cell into a hypelink

=> you cannot clik on the image, the lick is not "active"

if you had some text in this cell i am able to see and click on the text but still not on the complete image.

Of tof the solution i started using was using code like this one :

<a href="www.google.com" ><img src="boimg://2 gauge very low white PNG.png" /> </a> (and using the option read content as HTML)

but With this code i dont see the picture (i see a red X picture) but i can click on it as a hyperlink.

So this solution seems to work for the link. But why my picture is not showing?

When i simply put into the cell "boimg://2 gauge very low white PNG.png" picture is displayed. Could it be because boimg is some kind of function not recognised in HTML ?

In the code previosly shown to you ther is a slight mistake :

<a href="www.google.at">

<im g src = "URL for the image" />

</a>

it's img and not im g.

Regards

Former Member
0 Kudos

Hi,

yes exactly. I noticed the mistake, I just forgot to mention something about the <im g> instead of img.

Related to your question: Sorry, I don't know the tag boimg, so I can't help you with that!

Regards,

Kathi

Former Member
0 Kudos

Hi Team Cap Gemini

Do the procedure as follows

1) drag and drop empty cell

2) right click >hyperlink>read cell content as hyperlink

3) right click >hyperlink>new hyperlink

4) enter url ex:www.google.com -->parse

5) properties-->read content as -->image from URl

6)properties Back ground image-->imageUrl -->enter file name with extension like(help.gif)

boimg: is not a function its a default location like (C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\images)

Note: make sure you give extension to that file name

Hope this helps u

Regards

Sunil

former_member211289
Participant
0 Kudos

Arijit,

Your solutions are always unique.

I have the query same like this i.e., I have image in the web I report ,now I have to create a hyperlink on image ,so when I click on image ,I need to get sub report ,this is to conduct reports .

My query is ,where do I put the below code ?.......

<a href="www.google.at" >

    <im g src = "URL for the image" />

</a>

Is this the right process for putting the above code...?

Select image-right click on image -select hyper link- write the above code here-click on parse.

If this is the process, do I need to mention my open document URL in place of www.google.at ?

Kindly let me know Arijit ?

former_member211289
Participant
0 Kudos

Hi Katharina,

I have the query same like this i.e., I have image in the web I report ,now I have to create a hyperlink on image ,so when I click on image ,I need to get sub report ,this is to conduct reports .

My query is ,where do I put the below code ?.......

<a href="www.google.co.in" >

    <im g src = "boimg://auditingBOBJLogo.png" />

</a>

Kindly let me know the process ,how to insert a hyperlink on image ?

Answers (1)

Answers (1)

Former Member
0 Kudos

I know this is an old post but I cannot get this to work with the current version of BusinessObject 4.1 sp4 patch 2.  It is exactly as described by Katharina. Either image or link. if you trick it, you can make it work but you shouldn't have to.

Here is the syntax that bo writes for a regular hyperlink.in a cell:

="<a href=\"www.google.com\" title=\"\" target=\"_blank\" nav=\"web\">text</a>"  this has nothing to do with an image. but you can add a background image to the cell and you have an image and a hyperlink.

The problem is here: The part "web\">text</a>" is what you get when there is text entered to click on. If you delete the text in there, it is no longer clickable.   With the text it is clickable but the text shows on top of the picture in whatever hyperlink colors you have set. .

="<a href=\"www.google.com\" title=\"\" target=\"_blank\" nav=\"web\">text</a>"

if you just put spaces in there to make it clickable, the underscore character shows up in the hyperlink color

="<a href=\"www.google.com\" title=\"\" target=\"_blank\" nav=\"web\">       </a>"

So normal link text can be used like this to trick it to do what I want, but the correct way to do it using an image url and image url syntax does not seem to work.

Does anyone have an example of any exact syntax and/or process flow that can get a normal Img url to work inside a webi document?