cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP CRM selection mode MULTISELECT

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Roy,

Thank you for your help. This issue has been solved.

BR

Jay

Answers (0)