08-09-2007 2:12 PM
Hi All,
I have a requirement to use image as a hyper link so that when a user clicks on that image he can see the report related to it.
Could this Feature is possible through ABAP.
If yes how can i achieve it, is there any FM with the use of which i can use the image as a hyper link.
Please reply as soon as possible.
Thanks in advance
Message was edited by:
Rachit Khanna
08-10-2007 4:55 AM
Hi,
Refer to the the following code for using image as hyperlink.
<%@ page import="com.sapportals.portal.prt.resource.IResource" %>
.
.
<hbj:link
id="link1"
text="Link to SAP"
reference="http://www.sap.com"
target="_TOP"
tooltip="this takes you to: http://www.sap.com";
onClick="LinkClick"
>
<hbj:image
id="image_logo"
alt="Image not available"
src=""
>
<%
IResource
rs=componentRequest.getResource(IResource.IMAGE,
"../mimes/sap.gif");
image_logo.setSrc
(rs.getResourceInformation().getURL(componentRequest));
%>
</hbj:image>
</hbj:link>
regards
Gaurav
Reward points if helpful
08-10-2007 4:55 AM
Hi,
Refer to the the following code for using image as hyperlink.
<%@ page import="com.sapportals.portal.prt.resource.IResource" %>
.
.
<hbj:link
id="link1"
text="Link to SAP"
reference="http://www.sap.com"
target="_TOP"
tooltip="this takes you to: http://www.sap.com";
onClick="LinkClick"
>
<hbj:image
id="image_logo"
alt="Image not available"
src=""
>
<%
IResource
rs=componentRequest.getResource(IResource.IMAGE,
"../mimes/sap.gif");
image_logo.setSrc
(rs.getResourceInformation().getURL(componentRequest));
%>
</hbj:image>
</hbj:link>
regards
Gaurav
Reward points if helpful
08-10-2007 5:12 AM
HI Gaurav,
Thanks for responding
Could you please tell me where i have to test this code in ABAP editor
My Requirement is to do it with ABAP.
Thanks and Regards,
Rachit Khanna
08-10-2007 5:01 AM
hi
good
go through this link and try,but i am not sure wheather it is possible or not.
http://help.sap.com/saphelp_nw04/helpdata/en/f9/55e641fb6e3f5de10000000a1550b0/content.htm
thanks
mrutyun^