cancel
Showing results for 
Search instead for 
Did you mean: 

diffrent values for Dropdown in rowRepater

yes_sapteam
Participant
0 Kudos

Hello,

I've got a RowRepeater which holds several dropdown fields.

My context has Node :

Record (struct type p0022) which in turn has a son node

Certificate (type p00222-slabs)

I'm tring to change the "certificate" dropdown value list, based on user selection in "education" dropdown field.

My problem is that the following code work for all "certificate" dropwdown fields in all the lines of the row repeater.

I'd like it to change it's value only for the current rowRepeater line.

Code is activated "onSelect" of "education" dropdown :

DATA : lo_node      TYPE REF TO if_wd_context_node,
         lo_node_info TYPE REF TO if_wd_context_node_info,

         lt_value_set TYPE wdr_context_attr_value_list,

         lv_slart    TYPE p0022-slart.

  lo_node      = context_element->get_child_node( 'CERTIFICATE' ).
  lo_node_info = lo_node->get_node_info( ).

* Set certificate
  lv_slart     = wdevent->get_string( 'KEY' ). "Get current selection key
  lt_value_set = wd_assist->set_slabs( lv_slart ). "get value range based on selected key

  lo_node_info->set_attribute_value_set( name = 'SLABS' value_set = lt_value_set ). "Reset dropdown values
  lo_node->set_attribute( name = 'SLABS' value = '' ). "Clear previous value

Edited by: Yes SAP Team on Jan 30, 2012 4:10 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

try dropdownbyindex instead of dropdownbykey. make sure you set singleton property to false for parent element.