cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Dropdown List Box

former_member206441
Contributor
0 Kudos

Hi Experts,

Im binding values to drop down from the internal table, the dropdown too displaying the values but the selected value is not captured after the page is refreshed.

the coding in MVC-layout is:

< htmlb : drop down List Box id = " enam "

on Select = " "

sele ction = " < % = controller - > current-EMPNAME % > "

table = " < % = controller - > lt_emp % > "

n ame Of Value Column = " emp name "

n ame Of Key Column = " e mpid " / >

help me to solve this issue.

Arun.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member206441
Contributor
0 Kudos

Hi Experts

Thanks for your reply

solved myself by capturing the value using a variable

Former Member
0 Kudos

Hi,

I assume your BSP application is stateless.

You need to redefine your DO_HANDLE_DATA and capture your selection from form_fields.

Once you get the correct value assign that to current-EMPNAME.

Hope this helps.

Regards,

Abhinav

former_member206441
Contributor
0 Kudos

Hi Abhinav

I checked my BSP application property it is in unchanged status(default), and i also caputured my selection

in do handle data as below:

read table form_fields into ls_form_field

with key name = 'enam'.

if sy-subrc eq 0 .

current-empname = ls_form_field-value.

endif.

Arun

Former Member
0 Kudos

Hi Arun,

In your dropdown list implementation "selection" attribute should be same as "nameOfKeyColumn".


< htmlb :dropdownListBox 
id                                = " enam "
on Select                     = " "
selection                    = " < % = controller - > current-EMPNAME % > "
table                           = " < % = controller - > lt_emp % > "
name OfValueColumn   = " emp name "
nameOfKeyColumn      = " empid " / > 

Also the column names should be in upper-case.

Thanks and regards,

Bindiya