Skip to Content
0
Former Member
Aug 07, 2009 at 11:50 AM

BSP Dropdown list Not populated

25 Views

Hi Experts,

I need to develop one dropdownlist box using MVC. I did all the things but its not populating the value. please check my steps.

In view attribute I defined,

IT_FORMKEY TYPE WDR_CONTEXT_ATTR_VALUE_LIST

NATION_SELECTED TYPE STRING

Then In class attribute i did the samething like page attribute.

Check my code in DO_Init.

data : begin of str_formkey,

value type string,

text type string,

end of str_formkey,

it_formkey like table of str_formkey.

select land1 natio from t005t into table it_formkey where spras eq 'EN'.

I checked in debugging and internal table has value at th runtime.

Check my code in Do_Request :

data : perdata_view type ref to if_bsp_page.

dispatch_input( ).

perdata_view ?= create_view( view_name = 'VIEW1.HTM').

perdata_view->set_attribute( name = 'IT_FORMKEY'

value = it_formkey ).

perdata_view->set_attribute( name = 'NATION_SELECTED'

value = nation_selected ).

call_view( perdata_view ).

Apart from that Need to do anything more? Now my view is displayed in the browser but the list box is empty.

Can any one help me in this?

Edited by: Nandini on Aug 7, 2009 1:50 PM