cancel
Showing results for 
Search instead for 
Did you mean: 

how to work with drop down in webdynpro abap

Former Member
0 Kudos

Hi Experts,

I am working in webdynpro developement, i am facing an issue in webdynpro.i.e,

in my web dynpro component i have created three drop downs those are:

1.zone,  2. ward, 3. colony.

when we click on zone, ward related information has to populated in ward drop down

when we click on ward, colony related information has to populated in colony drop down..

anybody please help me how do i do this...

Thanks&Regards,

supriyo

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member199126
Participant
0 Kudos

Hi there is a WD component called WDR_TEST_EVENTS. All the UI elements are explained very clearly with examples. You can go through this component and and find information relevant to your need.

Thanks,

Karthik.

amy_king
Active Contributor
0 Kudos

Hi Supriyo,

You can use the onSelect event of each predecessor dropdown to populate the value list of its successor.

  1. Create an onSelect event for the ZONE dropdown in which you populate the value list of WARD. 
  2. Create an onSelect event for the WARD dropdown in which you populate the value list of COLONY.

You can programmatically set the value list of a dropdown by using method set_attribute_value_set of the interface if_wd_context_node_info.

Cheers,

Amy

Former Member
0 Kudos

Thanks for your reply ....it is working fine

amy_king
Active Contributor
0 Kudos

Hi Supriyo,

Glad it is now working. Please reward points if your question is answered.

Cheers,

Amy