Quantcast
Channel: SCN: Message List - SAP CRM: Interaction Center
Viewing all articles
Browse latest Browse all 3700

Re: Add a code to an existing SAVE button

$
0
0

I solved the problem like this:

I created a New Event (Component --> Views --> Event Handler --> Create), which added a custom DO_HANDLE_EVENT method to the IMPL class. In this method i added my code to the SAVE event:

CASE htmlb_event_ex->event_server_name.

     WHEN'SAVE'.
       EH_ONNewEvent
( htmlb_event      = htmlb_event

                                   htmlb_event_ex = htmlb_event_ex ).

 

 

Of course to keep all the previous functionality of the SAVE button i had to add this:

   global_event = super->do_handle_event(

            event                  = event
            htmlb_event        = htmlb_event
            htmlb_event_ex   = htmlb_event_ex
            global_messages = global_messages ).

 

 

Additional question:

I didnt change the EH_ONSAVE method, so it still marked with yellow triangle (part of a CL class). Currently it has a bunch of code in it. If i redefine the method, it gets marked with green square and the current code dissapears.

When i would press the SAVE button, would the code from CL class still be run ? Or just the code i added into a redefined method ?


Viewing all articles
Browse latest Browse all 3700

Trending Articles



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