Adding a Radio Button -
Create a context node and add the below methods.
GET_P MethodCASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_radio.
WHEN if_bsp_wd_model_setter_getter=>fp_radio_cols.
rv_value = '2'.
WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
rv_value = 'SELECT'.
WHEN if_bsp_wd_model_setter_getter=>fp_group.
rv_value = 'R1'.
ENDCASE.
GET_V Method
IF gv_radio_ddlb IS NOT BOUND.
CREATE OBJECT gv_radio_ddlb
EXPORTING
iv_source_type = 'T'. "Where gv_radio_ddlb type ref to CL_CRM_UIU_DDLB.
**Populate LT_DDLB with your radio button text values.
gv_radio_ddlb->set_selection_table( lt_ddlb ).
ENDIF.
rv_valuehelp_descriptor = gv_radio_ddlb.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.