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

Re: selected row index in table

I have a table column as link to action.

On selecting the link it should navigate to its details(detailed info). Without lead select i might click on the value. in this case how do i get that selected value.

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 Sep 05, 2009 at 06:55 AM

    Implement the event onAction of linktoaction and place the following code in the method;

    Data: context_element type ref to if_Wd_context_element.
    
    context_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
    context->element->get_static_attributes( importing static_attributes = ls_stru ),
    " ls_stru will have the contents of the entire row, ls_stru-fieldname will give you the value
    
    Radhika

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Radhika,

      Thanks a lot. It is exactly what i required.

      A small correction in the code.

      Data: context_element type ref to if_Wd_context_element.

      context_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).

      context_element->get_static_attributes( importing static_attributes = ls_stru ).

      thanks again

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2009 at 05:20 AM

    Hi,

    As radhika says you can only get the selected rows in table only. If you have to display some other details which are not present in UI table, then you will have get the primary field in the method suggested by radhika. Then you have to use a query to get the necessary fields from DB table using this primary field.

    Hope this helps you.

    thanks,

    Aslam

    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.