cancel
Showing results for 
Search instead for 
Did you mean: 

Threshold slider updates

Former Member
0 Kudos

Hello Techies,

In our ESS requirement where we display different skill categories & ratings for same for an employee.

Rating display & changing same has been achieved using "THRESHOLD SLIDER" in Multipane and using supply function.

But whenever we change rating for one skill category it is updating same for all threshold sliders used for different skills.

Can anybody let us know any solution for same?

Thanks in advance,

Sachin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sachin,

Your description suggests me that you change the rating for the whole node and not for the particular context_element. if you post your code how you change your element , we can say if there is any problem in it.

Former Member
0 Kudos

method ONACTIONON_CHANGE_RATING .

DATA : lo_nd_ctx_slider TYPE REF TO if_wd_context_node ,

lo_el_ctx_slider TYPE REF TO if_wd_context_element ,

lo_node type ref to if_wd_context_node,

lo_element type ref to if_wd_context_element.

DATA : ls_ctx_slider TYPE wd_this->element_ctx_slider ,

ls_t_value_help type wd_this->element_t_value_help.

DATA : lv_value TYPE wd_this->element_ctx_slider-value ,

lv_index_help type i .

data: lt_t_value_help type table of wd_this->element_t_value_help.

cl_wdr_view_explorer=>onaction(

i_wdevent = wdevent

i_wd_context = wd_context ).

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

lo_nd_ctx_slider = wd_context->get_child_node( name = wd_this->wdctx_ctx_slider ).

  • get element via lead selection

lo_el_ctx_slider = lo_nd_ctx_slider->get_element( ).

  • get single attribute

lo_el_ctx_slider->get_attribute(

EXPORTING

name = `VALUE`

IMPORTING

value = lv_value ).

*---Get the index of the selected listbox

call method context_element->get_child_node

exporting

name = 'T_VALUE_HELP'

receiving

child_node = lo_node.

**Add one more for index , list index value is +1 of Rating

**This is to be in Sync with the List Box selection

**Use this value to get teh element from 'T_VALUE_HELP' context .

lv_index_help = lv_value + 1 .

lo_element = lo_node->get_element( index = lv_index_help ).

*---Save the index for in local context..

call method context_element->set_attribute

exporting

value = lv_index_help

name = 'LISTBOX_SELECT_INDEX'.

  • Trigger processing of document input action

wd_comp_controller->update_main_context( ).

wd_comp_controller->fire_ev_enter_evt( ).

endmethod.