on 01-11-2011 9:27 AM
Hi Experts
How to populate values in drop down list box in web ui?
Hi ,
Generate get_v for get_p for the attribute and
in get_p
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
Endcase.
in get_v
DATA: lt_ddlb TYPE bsp_wd_dropdown_table,
ls_ddlb TYPE bsp_wd_dropdown_line.
DATA:
lt_dd07v_tab_n TYPE TABLE OF dd07v,
lt_dd07v_tab_a TYPE TABLE OF dd07v,
ls_dd07v_tab_n TYPE dd07v.
IF gr_ddlb_option IS NOT BOUND.
fill the drop down with your logic
LOOP AT lt_dd07v_tab_n INTO ls_dd07v_tab_n.
ls_ddlb-key = ls_dd07v_tab_n-domvalue_l.
ls_ddlb-value = ls_dd07v_tab_n-ddtext.
APPEND ls_ddlb TO lt_ddlb.
CLEAR ls_ddlb.
ENDLOOP.
CREATE OBJECT gr_ddlb_option
EXPORTING
iv_source_type = 'T'.
gr_ddlb_option->set_selection_table( lt_ddlb ).
ENDIF.
rv_valuehelp_descriptor = gr_ddlb_option.
Regards,
Gangadhar.S
Edited by: gangadhar rao on Jan 11, 2011 10:44 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sir
Thanks for extremely helpful reply !
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.