cancel
Showing results for 
Search instead for 
Did you mean: 

Event Handling for dropdown while using WDR_SELECT_OPTIONS

former_member200388
Active Participant
0 Kudos

I am trying to development a selection screen where there are select options along with with a dropdown. I want modify the view as the value in the dropdown is selected. I have already checked with the interface event handlers available in WDR_SELECT_OPTIONS. None of them can be used in my case. Please help me out. Please!!!!

Thanks & Regards

Sounak

Accepted Solutions (0)

Answers (7)

Answers (7)

former_member200388
Active Participant
0 Kudos

Thank you Shivesh and Chengalarayulu for your response.
Yeah that is what i was looking for dropdown with WDR_SELECT_OPTIONS event handling. But probably not possible.
If anyone can advice on this further.....

chengalarayulu
Active Contributor
0 Kudos

Sounak,

Create DropDown on your static View.. and in onSelect action.. you can populate the SELECT-OPTIONS selection screen fields..

try this.. because as per my knowledge select options & dropdown together is not possible..

hope it helps you..

Shivesh
Advisor
Advisor
0 Kudos

HI Sounak,

     Refer this link for Select Option: http://saptechnical.com/Tutorials/WebDynproABAP/SelectOptions/demo.htm

     For Drop-Down: UseDrop Down UI Element & tht will have a event. You can use it accordingly.

Regard's,

Shivesh Ranjan.

Former Member
0 Kudos

Hi,

What exactly you want to change when the value in the dropdown is selected?

Regards,

Rohit

former_member200388
Active Participant
0 Kudos

Hi Rohit,

I want to change the same view when i will be changing the dropdown value.

Thanks in advance.

Former Member
0 Kudos

Hi Sounak,

If you want to set the value of your dropdown as selected you can try this:

* create local data variable to access context information

  Data: context_node type ref to if_wd_context_node.

* create table based on context structure

  Data: it_carriers type STANDARD TABLE OF if_view1=>element_DROPDOWN_CARRIERS,

          wa_carriers like line of it_carriers.

  select *

    from scarr

    into table it_carriers.

  context_node = wd_context->get_child_node( name = 'DROPDOWN_CARRIERS').

  context_node->BIND_TABLE( it_carriers ).

* Set displayed value of dropdown by index UI element.

  index = 3. "sets dropdown value to the third entry in the drop down table

  context_node->set_lead_selection_index( index = index ).

Here , this will set the third value of your dropdown as selected one.  I hope you are using dropdown by index here.

Thanks,

Nsingh

former_member200388
Active Participant
0 Kudos

Hi Neha,

I am using WDR_SELECT_OPTIONS for creating the dropdown. So, i guess there is no chance of binding the values with such dropdown.

former_member200388
Active Participant
0 Kudos

Please provide some suggestions.

former_member200388
Active Participant
0 Kudos

Please provide some suggestions.