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

How do we delete/read the contents of a POPUP window?

$
0
0


Hi,

 

I have a POP UP window designed on the ACTION push button . This POP up window contains another 3 buttons.

 

ACTION Buttons.png

I want to delete/disable the last entry in this pop up , i.e, 'Request Deal Approval'.

The method that i had redefined is EH_ONPPFACTION. This is as follows:

 

 

 

DATA lr_cn TYPE REF TO cl_bsp_wd_context_node.

    DATA lr_entity TYPE REF TO cl_crm_bol_entity.

    DATA lr_msg_srv TYPE REF TO cl_bsp_wd_message_service.

    DATA lr_popup TYPE REF TO if_bsp_wd_popup.

    DATA lv_msg_dummy TYPE c LENGTH 1.                      "#EC NEEDED



    lr_cn = me->get_context_node( gc_cn_btadminh ).

    CHECK lr_cn IS BOUND.



    lr_entity ?= lr_cn->collection_wrapper->get_current( ).

    CHECK lr_entity IS BOUND.



    DATA lt_button_ext_t TYPE crmt_thtmlb_button_ext_t.



    FIELD-SYMBOLS <ls_button_ext_t> TYPE crmt_thtmlb_button_ext.

    cl_crm_uiu_bt_action_tools=>get_action_buttons_by_adminh(

      EXPORTING

        ir_adminh         lr_entity

*    iv_page_id        =

      CHANGING

        ct_thtmlb_buttons = lt_button_ext_t ).

***********************this is the code i added to delete the entry ****************************************

    READ TABLE lt_button_ext_t ASSIGNING <ls_button_ext_t> WITH KEY id = '#ZK_DEAL_APPROVAL'.

    IF sy-subrc = 0.

      delete table lt_button_ext_t from  <ls_button_ext_t>.

    ENDIF.
********************************************************************************


    lr_popup = cl_crm_uiu_bt_action_tools=>get_actions_popup_by_adminh( ir_adminh = lr_entity ir_wd_manager = me->comp_controller->window_manager ).


    IF lr_popup IS BOUND.

      lr_popup->set_on_close_event( iv_event_name = gc_ev_ppfaction_sel_closed iv_view = me ).

      lr_popup->open( ).

    ELSE.

      MESSAGE i008(crm_action) INTO lv_msg_dummy.           "#EC *

      lr_msg_srv = me->view_manager->get_message_service( ).

      lr_msg_srv->add_message( iv_msg_type   = sy-msgty

                               iv_msg_id     = sy-msgid

                               iv_msg_number = sy-msgno ).

    ENDIF.

 

 

 

These three entries get captured  in variable 'lt_button_ext_t' . I am also able to delete the entry .

Though it is deleting the entry but it is not setting on the UI Screen. It still shows me the 3 entries. Please advice as how to delete this entry and set it to the  Presentation UI Layer


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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