Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Enable / disable edit list based on authorization

$
0
0

Hi

 

 

How can I enable or disable 'EDIT LIST' button based on the address types assignment block based on the authorization object? Can anyone help me with this?

 

I tried using the following code in do_prepare_output to disable edit list . It did not work.

 

CALL METHOD SUPER->DO_PREPARE_OUTPUT

  EXPORTING

    IV_FIRST_TIME = iv_first_time

    .DATA: ls_button         TYPE crmt_thtmlb_button,

      lt_buttons        TYPE crmt_thtmlb_button_t,

      ls_button_header  LIKE LINE OF gt_button_header.

clear ls_button.

*IF gt_button IS INITIAL.

   ls_button-text = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BP/BP_EDITLIST' ).

 

 

*   ls_button-type = cl_thtmlb_util=>gc_icon_editlist.

   ls_button-on_click = 'EDITLIST'.

   ls_button-enabled = abap_false.

 

APPEND ls_button to gt_button.

* clear ls_button.

 

 

* else.

*   clear ls_button.

*   ls_button-enabled = abap_false.

 

MODIFY gt_button FROM ls_button TRANSPORTING enabled WHERE on_click = 'EDITLIST'.

 

 

*ENDIF.

endmethod.

 

 

Can anyone help me with this.

 

 

Regards

Geeth


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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