Skip to Content
0
Nov 25, 2011 at 10:17 AM

Dynamic alteration of action in certain row within row repeater

43 Views

Hi guys,

I need help considering the following scenario:

I am enhancing WD-Component FITE_VC_GENERAL_DATA. I need to dynamically register an action to a certain checkbox in ROOTUIELEMENTCONTAINER >TRANSP_ACCO_CONTAINER >TRANSPORT_ROWREP >TRANSPORT_CONTAINER >TRANSPORT_CHECKBOX

The contents for the row repeater come from a customizing table, could be 10, could be 100. Up Until now, I've cast down the UI Tree for the row repeater to eventually register an action via method set_on_toggle. But I am unable to understand how to get the exact one checkbox that I need. The ID is (as far as I understood from help.sap.com) dynamically the index is variable (since the customizing table might be changed).

Here's my 'attempt' of coding I did so far:

lo_el_ui_root ?= wd_comp_controller->z_go_view->get_element( 'ROOTUIELEMENTCONTAINER' ).
       lo_el_trans_cont1 ?= lo_el_ui_root->get_child( ID = 'TRANSP_ACCO_CONTAINER' ).
       lo_el_rowrep ?= lo_el_trans_cont1->get_child( ID = 'TRANSPORT_ROWREP' ).
       lo_el_rowrep->get_row_elements( RECEIVING the_row_elements = lt_trans_rows ). " now what do I do with this -_-

I have to admit I'm pretty much lost after getting the instance of the row repeater. Getting the row elements was more or less a stab in the dark.. I'm unsure whether it makes sence at all. Could you help me out?

Any help (coding-wise and explanatory) would be very much appreciated.

Cheers, Lukas