Make column sortable in WebUI

Problem: in WebUI, you want to sort a table by a certain column but the sort options are not available.

Solution: implement GET_P method of the column’s attribute and paste below code into it.

  CASE iv_property.
    WHEN if_bsp_wd_model_setter_getter=>fp_sortable.
      rv_value = 'TRUE'.
    WHEN OTHERS.
  ENDCASE.
  CASE iv_property.
    WHEN if_bsp_wd_model_setter_getter=>fp_sortable.
      rv_value = 'TRUE'.
    WHEN OTHERS.
  ENDCASE.

Komentowanie jest zakończone.