Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10482

Re: Enable / disable edit list based on authorization

$
0
0

hi geeth kns

 

i didnt get u what u said...

i think when u click EDIT button will be displayed as editable mode otherwise it will be display mode right..

i have an idea just follow...

 

first u need to get the custom controller class instance based on that u need to get a context node and then collection wrapper...then ur view will be editable along with header view...

example code...:

 

method EH_ONEDIT.

 

data : lr_cuco type ref to CL_BT111H_O_OPPTDETAILSCU_IMPL,

       lr_btadminh type ref to cl_crm_bol_entity.

 

  lr_cuco ?= get_custom_controller( controller_id = 'BT111H_OPPT/OpptDetailsCuCo' ).

 

  lr_btadminh ?= lr_cuco->typed_context->btadminh->collection_wrapper->get_current( ).

 

  if lr_btadminh->lock( ) = abap_true.

 

    view_group_context->SET_VIEW_EDITABLE( iv_view_controller =  me ).

 

    endif.

 

endmethod.


Viewing all articles
Browse latest Browse all 10482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>