cancel
Showing results for 
Search instead for 
Did you mean: 

How to create immediate response for a dropdown in ViewContainerUIElement.

Former Member
0 Kudos

Hi Experts,

I am using this method to create a dropdown selection dynamically and put it in ViewContainerUIElement.

.....

   WD_THIS->M_HANDLER2->ADD_PARAMETER_FIELD(

   I_ID = 'HSCODE'

   I_DESCRIPTION = 'HS Code'

   I_AS_DROPDOWN = 'X'

   IT_VALUE_SET = LT_HSCODE

   I_VALUE = LR_HSCODE ).

These codes are in WDDOINIT method.

I would like to have an immediate response when the user select the value in the drop down box, the text value in the other text box changed.

How could it be done?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

U should have a button outside the selection screen and  populate the required fields as needed on that button action.

No event is getting triggered from the parameter drop-down operations.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

we have a method for drop-down named as Onselect. On this make a action and in that action read the attribute which is bind with the Drop-down and fill the value in Textbox.. so value in textbox will changed by dorp down selection.

BR

Chandra..

amy_king
Active Contributor
0 Kudos

Hi Kok Wei,

The component controller of WDR_SELECT_OPTIONS has several events that you could subscribe to-- maybe ON_ENTER could be used for your purpose if you require the user to hit enter upon selecting a value from the dropdown.

Another option is to create a dropdown UI element at design time (on the view layout tab) and use the UI element's onSelect event instead of using a select-options.

Here are a couple of SCN discussions which might be useful to you...

Cheers,
Amy