Skip to Content
author's profile photo Former Member
Former Member

Error while creating a hyperlink for a field in a table view

Hi all,

I have created a table view to display the lead information.Now i wanted to make the lead number to be made as a hyperlink.I have tried the delow code

<htmlb:tableView id = "tvX"

headerText = "Leads Details"

headerVisible = "true"

design = "alternating"

visibleRowCount = "5"

visibleFirstRow = "<%= firstvisiblerow %>"

fillUpEmptyRows = "true"

onHeaderClick = "MyEventHeaderClick"

onRowSelection = "select"

selectionMode = "singleselect"

table = "<%= activities %>"

iterator = "<%= z_it %>"

sort = "SERVER" >

<htmlb:tableViewColumns>

<htmlb:tableViewColumn

columnName = "object_id"

type = "link" >

</htmlb:tableViewColumn>

</htmlb:tableViewColumns>

</htmlb:tableView>

But am getting the following error whlle am activating the code

Internal error occured during runtime generation

of Class CL_O2D59X6KFES8AMMPAFQ6AV1R3WF (Dump ID:

DBIF_REPO_SQL_ERROR).

When i remove the code for <htmlb:tableViewColumns> this error does not exist

Can canyone help me in solving this?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2009 at 09:52 AM

    Hi,

    in iterator method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.

    you need to call method cl_hrrcf_iterator=>get_bee_link to define the link for a specific filed.

    for example check the below code.

    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.

    CASE p_column_key.

    WHEN 'PERNR'.

    CALL METHOD cl_hrrcf_iterator=>get_bee_link

    EXPORTING

    p_cell_id = p_cell_id

    p_onclientclick =link_url

    p_column_key = p_column_key

    p_row_data_ref = p_row_data_ref

    p_tooltip_alias = l_alias

    IMPORTING

    po_bee = p_replacement_bee.

    ENDCASE.

    endmethod.

    vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2009 at 10:06 AM

    Hi,

    you have to give the following attributes also.

                    <htmlb:tableViewColumn columnName          = "EBELP"
                                           type                = "link"
                                           linkColumnKey       = "EBELP"
                                           linkClickTarget     = "_blank"
                                           onItemClick         = "htmlbevent.linkItemClick = ShowText()"
                                           title               = "<b><font color=darkblue>Item</font></B>" >
                    </htmlb:tableViewColumn>
    
    

    Regards,

    Usha.

    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.