Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

HTMLB Dropdown - Resolving Model Binding

Hi all,

We are using htmlb dropdowns in several places in our application. The code loooks like this:

<htmlb:dropdownListBox id = "ddLB_customer"

disabled = "<%= lv_disable1 %>"

table = "//my_appl/T_CUSTOMER"

selection = "//my_appl/s_test_st.cust_id"

nameOfKeyColumn = "SEL"

onSelect = "Customer"

nameOfValueColumn = "VALUE" />

The selection is not getting retained in the dropdown though values are populated from the table.

In the above code, when I debug, the CL_HTMLB_DROPDOWNLISTBOX class, the

me->resolve_model_binding( ) method is executed properly and the model class is resolved but finally, the value is not selected on the screen.

But this is the same code that is found in SBSPEXT_HTMLB application.

However, this code works fine but only some times. The combo values are populated always properly,

but the problem is with selection only.Sometimes, it works fine but this is not the case always.

The problem with selection exists here also.

<htmlb:dropdownListBox id = "ddLB_customer"

disabled = "<%= lv_disable1 %>"

table = "<%= my_appl->T_CUSTOMER%>"

selection = "<%= my_appl->s_test_st-cust_id%>"

nameOfKeyColumn = "SEL"

onSelect = "Customer"

nameOfValueColumn = "VALUE" />

In the above case, me->resolve_model_binding( ) method does not actually resolve the model because,

the variables, _selection, _table are empty.

Which of the above is correct code and why are the selection values not retained in the above codes?

Is there something which is missing?

Please help.

Thanks.

Former Member
Not what you were looking for? View more on this topic or Ask a question