Skip to Content
author's profile photo
Former Member

BSP tableview iterator question

Hi all experts,

I try to use iterator in my tableview in order to make

one of my column an URL link.

Here is some code section in RENDER_CELL_START method:

case p_column_key.

when 'URL'.

check m_row_ref->url is not initial.

create object col1_lnk.

col1_lnk->id = p_cell_id.

col1_lnk->tooltip = 'Open'.

col1_lnk->onclick = 'PartnerDetail'.

col1_lnk->text = 'Document Link'.

col1_lnk->reference = m_row_ref->url.

col1_lnk->target = '_blank'.

p_replacement_bee = col1_lnk.

endacse.

The display is fine and link contains the right URL.

However the problem is that when I click on this

link, it won't launch a new window to show this document.

Nothing happens.

But I can right click on this link and choose OPEN from the context menu to launch it w/o any problem.

How can I make it launch a new window automatically to show the content whenever I click on a link?

Thank you very much,

Bin

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Sep 30, 2005 at 05:08 AM

    Hi Bin,

    You can use HTMLB Link in your RENDER_CELL_START method.

     WHEN 'LINK'.
    
     p_replacement_bee = cl_htmlb_link=>factory(  id    = p_cell_id
    reference= 'http://www.yahoo.com/'
    text      = 'YAHOO'
    target = '_new' ).
    
    

    Hope this helps,

    Regards,

    Ravikiran.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 30, 2005 at 05:12 AM

    Please ignore this post

    Message was edited by: Faaiez Sallie

    Add comment
    10|10000 characters needed characters exceeded