cancel
Showing results for 
Search instead for 
Did you mean: 

change lead selection in dropdown by key

Former Member
0 Kudos

Hi,

I am using dropdown by key in one of my application.

I am getting some values by calling a FM.FM

returning me a table . My context for the dropdown is from the structure of the table.

--drpplan(node)

---code -(attribute)

-- desc-(attribute)

I am binding the values from the table to the node info and to code attribute to populate the dropdown by key.

It is working fine.

My requirement is when user selects some thing from dropdown corresponding description should show in a textview.

If I used a dropdown by key I know I dnt have write any code for this as the lead selection autometically changes. How to do this in dropdown by key.

I konw I can write in the onselect method, call the FM again and read the table with sected key and set the value.

But in this approch I am calling FM twice hitting the db again.

Is there any other way out. ?

Thanks,

Prosun

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

u can store the data in an internal table when the FM is 1st called.

And retrieve the describtion at selection event.