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:
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.
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.