Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 30, 2005 at 05:12 AM

    Please ignore this post

    Message was edited by: Faaiez Sallie

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.