cancel
Showing results for 
Search instead for 
Did you mean: 

Threshold slider UI value cannot link to dropdown value

siongchao_ng
Contributor
0 Kudos

Hi all,

Anyone knows how to link the value of threshold slider with a dropdown value? I created a threshold slider with a scale of 1-5

1. poor

2. needs development

3. is competent

4. exceptional

5. is outstanding

Meaning, if you select the dropdown value 3, the slider bar needs to be at 3 as well. Vice versa if I drag the slider bar to 3, I need the selected dropdown value to be at 3 as well.

The example given in the WDR_TEST_THRESHOLD_SLIDER program can only link a textview with the slider.

In the example slider onaction code and the textview onaction code, both only consist the following codes:

cl_wdr_view_explorer=>onaction(

     i_wdevent = wdevent

     i_wd_context = wd_context  ).

I used this in the dropdown onselect code but it wont have any effect on the slider.

Accepted Solutions (1)

Accepted Solutions (1)

amy_king
Active Contributor
0 Kudos

Hi Siong,

In WDR_TEST_THRESHOLD_SLIDER I notice that the value property of both the UI elements InputField VALUEINP and ThresholdSlider MYTHRESHOLDSLIDER are bound to the same context attribute, MAIN.VALUE. I wonder if you have done the same with your Dropdown element's selectedKey property?

Cheers,

Amy

Answers (0)