cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Hyperlink in BSP page

Former Member
0 Kudos

Hi,

I have a hyperlink content in a table in one field.

The link content is generated at the runtime, I mean it is not constant every time. It is different for different records in the table. I want to navigate to that link( a new window ) when clicked on that link, a field of table. How can I do that??

Regards,

Niranjan

Accepted Solutions (1)

Accepted Solutions (1)

former_member188685
Active Contributor
0 Kudos

we can do this in two ways..

1. using htmlb

using the tableview iterator you can do that. based on the content of the clicked cell populate the hyperlink and target page in the iterator cell_start method.so that you can navigate to different webapplication in a popup.

2. using normal html

here based on the event onclick for table cell, and its value we can show different window using window.open javascript.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Can we open a new window using hyperlink?

former_member184111
Active Contributor
0 Kudos

Hi,

Use attribute TARGET.

target = _BLANK

Regards,

Anubhav.

athavanraja
Active Contributor
0 Kudos

<% 
data: linkid type string ,
      ttab(5) .
loop at linktable into wa .
move: sy-tabix to ttab . 
clear linkid .
concatenate 'link' ttab into linkid .
condense linkid no-gaps .
 %>
 <htmlb:link id            = "<%= linkid %>"
                    ...
                    ...
                    ...
                  reference     = "<%= wa-linkurl %>"
                  text          = "<%= wa-linkdescription %>" />

<% endloop .%>

divya_nayudu
Participant
0 Kudos

Could you be more specific on the Loop code that is to be written in .BSP file.

I am having similar requirement. Need to get hyperlink on the first column of the tableview. Please help.