cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro:Drop down by Index- Unable to set selected value from the list

0 Kudos

Hi,

Requirement(can be ignored)- Filter the tax code drop down list based on dynamic change of company code.

Problem faced- Unable to set selected value from the drop down.

I am able to display filtered value for the drop down but when i select any tax code from the drop down -> WDDOMODIFYVIEW gets triggered and the list gets refreshed again. As a result the selected value doesn't show up.

-Data binding is fine(output shown is correct)

-WDDOMODIFYVIEW getting triggered again is causing the problem

My code ends up with data binding. Is there anything missing which is causing problem over the value selection?

Other possible ways tried- both didn't help

-WDDOAFTERACTION

-ONACTIONONTAXSELECTED

Help needed urgent.

Thanks,

Rohan

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Thank you everyone for your help.

Sorry for the late reply.
-Lead Selection by index and few checks solved the problem.

-Changes made in WDDOMODIFYVIEW

Thanks,

Rohan

chengalarayulu
Active Contributor
0 Kudos

Rohan,

do use some flag setting in modifyview like first_time etc.. to avoid refreshing filter of dropdown data.

former_member230486
Contributor
0 Kudos

Hi Rohan,

If you want to set selected value from the list you have to write the code in ON SELECT property of DropDownByIndex.

Former Member
0 Kudos

Hi Rohan..

I need some more clarification on the issue. Actually where are you initially binding the dropdown table. If it is in Modifyview then you need to bind it either in WDDOINIT or in suppy function of the respective node.

0 Kudos

Hi Sanket,

I have done the binding in WDDOAFTERACTION.

Can you please tell me how WDDOINIT will help? because the problem is with the 'value selection' (display works fine)

Former Member
0 Kudos

Actually what is happeing out here, you are binding the initial Dropdown data whenever any action is being called (DOAFTERACTION).

So you need to bind the initial data of the dropdown in wdinit as the initial data is not going to change, as I assumed. then in the property of dropdown (in View layout), you can use the selected entry by use by using get lead selection of the respective node.

You don't need to do anything for dropdown display, if the initial dropdown is binded at correct place.

Let me know, if you still need more clarification.