cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP WEBDYNPRO

Former Member
0 Kudos

Hi,

I am displaying a standard table. In addition to the fields of the table, I am displaying another column with a link.

If the user click the link, I have to lead select the corresponding entire row.

How can I code this?

Thanks in advance.

Regards,

Balaji.R

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Make Use of Supply function..

in the component context, assign a supply function to your desired node and create it using forward navigation..

Regards

vikram salvi

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Balaji,

Try this code.

data lo_nd_nodename type ref to if_wd_context_node.

data lo_el_nodename type ref to if_wd_context_element.

data ls_nodename type wd_this->element_nodename.

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

lo_nd_nodename = wd_context->get_child_node( name = wd_this->wdctx_nodename ).

  • get element via lead selection

  • lo_el_nodename = lo_nd_nodename->get_element( ).

lo_el_nodename = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).

  • @TODO handle not set lead selection

if lo_el_nodename is not initial.

  • get all declared attributes

lo_el_nodename->get_static_attributes(

importing

static_attributes = ls_nodename ).

endif.

if lo_nd_nodename is not initial.

call method lo_nd_nodename->set_lead_selection

exporting

element = lo_el_nodename.

endif.

Former Member
0 Kudos

Thanks for your effort.

The code is working.

Regards,

Balaji.R