on 01-30-2012 3:09 PM
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
try dropdownbyindex instead of dropdownbykey. make sure you set singleton property to false for parent element.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.