Skip to Content
avatar image
Former Member

ABAP CRM selection mode MULTISELECT

Hi Dear Experts,

I have an issue that confused me so much. In CRM Web UI, there is a component to display some data, but it just allow us to select one row, the view has not yet been enhanced. I then re-define the method do_init_context  to pass the 'MULTISELECT' as below:

typed_context->result->set_selection_mode(

       iv_selection_mode = cl_bsp_wd_context_node_tv=>selmode_multi

     ).


But it is still could not work correctly. Please see the attachment. No.1 could choose muliple but No.2 could not. 😕


BR

Jay

Capture 1.PNG (26.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 20, 2015 at 04:21 PM

    I think you need to write your code in DO_PREPARE_OUTPUT method. Not DO_INIT_CONTEXT.

    Redefine DO_PREPARE_OUTPUT and try by writing the below code.

    me->typed_context->result->set_selection_mode( cl_bsp_wd_context_node_tv=>selmode_multi ).

        IF me->typed_context->result->collection_wrapper->if_bol_bo_col~multi_select ne abap_true.

          me->typed_context->result->collection_wrapper->if_bol_bo_col~set_multi_select( ).

        ENDIF.

    typed_context->result->build_table( ).

    R

    Add comment
    10|10000 characters needed characters exceeded