Skip to Content
0
Former Member
Feb 18, 2011 at 08:15 PM

DropdownByIndex in RowRepeater

15 Views

Hello,

I have built a rowrepeater in my view, which contains, among others, a dropdownbyindex field. The Information in the table is displayed only on the first dropdown field and has the records for all others, while these are empty. The main table in the context has, among others, an atribute of type table, which contains only 1 atribute. I am feeding the tables this way:

mystruc-pos = '1'.
  mystruc-title = 'Titulo 1'.
  APPEND mystruc TO myitab.
  node->bind_elements( new_items = myitab set_initial_elements = abap_false index = 1 ).     "<-- table TARGETS
  node_tab_vals = wd_context->path_get_node( path = `TARGETS.TAB_VALS` ).  
  node_tab_vals->bind_elements( new_items = tab_vals set_initial_elements = abap_false index = 1 ).  "<-- table for dropdown values

  REFRESH myitab.
  mystruc-pos = '2'.
  mystruc-title = 'Titulo 2'.
  APPEND mystruc TO myitab.
  node->bind_elements( new_items = myitab set_initial_elements = abap_false index = 2 ).    "<-- table TARGETS
  node_tab_vals->bind_elements( new_items = tab_vals set_initial_elements = abap_false index = 2 ).  "<-- table for dropdown values

the atribute FIELD in table TAB_VALS is connected to the dropdown field in its atribute TEXTS.

where is my error ??