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

Identifying which line was selected from a WebDynpro table


can any one give me some advice, I've created a view which displays a table of filenames, which in fact are "LinkToAction" columns. The idea was that when a filename(LinkToAction) was selected, I could retrieve the appropriate file from the Applicatio server and Open the file in Excel or Save as Excel. My problem is, when I select a filename I don't know how to identify what line was selected in the table. Any advice would be great.



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on May 30, 2007 at 03:52 AM


    If you are using the table control and wanted to find out which cell (linktoaction UI element) was selected.

    For the LinkToAction UI element in table you would have written OnAction event method for the cell. In this method there is a parameter WDEVENT. In the degugging mode you can check the value of WDEVENT which is having the value of the row which user has selected(drilldown on linktoaction).

    You can get this value from the CONTEXT_ELEMENT id of wdevent parameter. The sample code to get the static paramters in WDEVENT is

          static_attributes = ls_spfli ).

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 04:42 AM

    Hi , Just identify its element which is lead selected and read attribut of that element .

    Have the code for the same


    node_nd_worlflow TYPE REF TO if_wd_context_node,

    elem_nd_worlflow TYPE REF TO if_wd_context_element,

    stru_nd_worlflow TYPE wd_this->element_nd_worlflow ,

    lead_selection_index TYPE i,

    relation_no TYPE guid_32.

    • navigate from <CONTEXT> to <ND_WORLFLOW> via lead selection

    node_nd_worlflow = wd_context->get_child_node( name = wd_this->wdctx_nd_worlflow ).

    • @TODO handle not set lead selection

    IF ( node_nd_worlflow IS INITIAL ).


    • get element via lead selection

    lead_selection_index = node_nd_worlflow->get_lead_selection_index( ).

    elem_nd_worlflow = node_nd_worlflow->get_element( index = lead_selection_index ).

    elem_nd_worlflow->get_static_attributes( IMPORTING static_attributes = stru_nd_worlflow ).



    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.