Skip to Content
0
Former Member
Nov 02, 2010 at 02:41 PM

edit cel of table , leadselection

12 Views

Hi ,

I have an editable table with 2 checkboxes as editable fields , if i check on 1, it has to check on the second checkbox.

Problem : if i toggle the first checkbox, i don't have yet the leadselection .. how to solve this ?

this is the toggle method :

Data : lo_nd_selection_items type ref to if_wd_context_node,

lo_el_selection_items type ref to if_wd_context_element,

lv_cockpit type c.

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

lo_nd_selection_items = wd_context->get_child_node( name = wd_this->wdctx_selectionitems ).

  • get element via lead selection

lo_el_selection_items = lo_nd_selection_items->get_element( ).

  • get single attribute

lo_el_selection_items->get_attribute(

EXPORTING

name = `COCKPIT`

IMPORTING

value = lv_cockpit ).

if ( lv_cockpit = abap_true ).

  • set single attribute

lo_el_selection_items->set_attribute(

name = `DASHBOARD`

value = lv_cockpit ).