cancel
Showing results for 
Search instead for 
Did you mean: 

Display Link Item as an Image

Former Member
0 Kudos

Hi Gurus,

I inserted a Link Item in my web template 70 and I don't find the way to display my link as an image.

Thanks for your help

Jacques

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

why just use "Insert" -> Image -> Source: e.x. "http://www.sap.com/global/images/saplogo.gif" ???? And then maintain attributes: onclick... with your address...

Best regards,

Frank

Answers (1)

Answers (1)

Former Member
0 Kudos

Look in the XHTML view of the template and where you see the text for the link add the path to the image as below.

<IMG SRC="http://sap.com/logo.gif"> ..

Former Member
0 Kudos

Hi Deepu,

I tried that but it does not work. Instead of my image, the text "click here" is displayed.

Just have a look on my xhtml code:

<bi:LINK_ITEM name="LINK_ITEM_1" designheight="70" designwidth="200" >

<bi:ACTION type="CHOICE" value="INSTRUCTION" >

<bi:INSTRUCTION >

<bi:DRILL_DOWN >

<bi:TARGET_DATA_PROVIDER_REF_LIST type="ORDEREDLIST" >

<bi:TARGET_DATA_PROVIDER_REF index="1" value="DP_1" />

<bi:TARGET_DATA_PROVIDER_REF index="2" value="DP_2" />

</bi:TARGET_DATA_PROVIDER_REF_LIST>

<bi:CHARACTERISTIC value="0CUST_GRP5" text="Customer group 5" />

<bi:AXIS_POSITION type="CHOICE" value="CHARACTERISTIC" />

</bi:DRILL_DOWN>

</bi:INSTRUCTION>

</bi:ACTION>

<bi:TEXT_CONTENT>

<img alt="Row Drill Down" src="bwmimerep:///sap/bw/Mime/BEx/Icons/drill_row.gif" border="0" />

</bi:TEXT_CONTENT>

</bi:LINK_ITEM>

What is wrong with that?

Regards

Jacques

Former Member
0 Kudos

WAD template check does not allow you to have any tag for the values.

You can insert a image tag in the template like this <img src='http://www.sap.com/global/images/saplogo.gif"> and on the onclick event you can call a JS function created using the Script Web Item.

You can use the Command Wizard in the script item also.

<img src='http://www.sap.com/global/images/saplogo.gif" onclick="myjavascript()">

This should work.