cancel
Showing results for 
Search instead for 
Did you mean: 

Select All

Former Member
0 Kudos

Hi Experts,

I have a functionality select all , it is not activating when clicking on select all.

I write the code in do_prepare_output.


   me->typed_context->btqract->set_selection_mode( EXPORTING iv_selection_mode = cl_bsp_wd_context_node_tv=>selmode_multiedit ).

     lr_sel_col ?= me->typed_context->btqract->collection_wrapper->get_marked( ).

     IF lr_sel_col IS BOUND.

       IF  lr_sel_col->size( ) < 1.

         lv_enable = abap_false.

       ELSE.

         lv_enable = abap_true.

       ENDIF.

   ENDIF.

    

Please help me get the solution.

Thanks & Regards,

Prasaditha.

Accepted Solutions (1)

Accepted Solutions (1)

deepika_chandrasekar
Active Contributor
0 Kudos

Hi,

Enhance method do_prepare_output and change the selection mode

method DO_INIT_CONTEXT.

*   set initial selection mode for all tables

    typed_context->context_node_name->set_selection_mode(

      IV_SELECTION_MODE = CL_BSP_WD_CONTEXT_NODE_TV=>SELMODE_MULTI

    ).

endmethod.

else change it .htm page tag configTable attribute "selectionMode"  = 'MULTISELECT'

Regards,

Deepika.

Former Member
0 Kudos

Thanks Anil & Deepika,

Working fine

Answers (0)