cancel
Showing results for 
Search instead for 
Did you mean: 

Redefine of Event Handler of WebUI

Private_Member_19084
Active Contributor
0 Kudos

Hi experts,

I would like to redefine a "Event Handler" Method of component AIC_CMCR_H, View AIC_CRMCR_H/AICCMCROverview.

It is the method EH_ONEDIT, which I would like to modify.

At the beginning of this method there is the following coding:

  super->eh_onedit(
    htmlb_event    = htmlb_event
    htmlb_event_ex = htmlb_event_ex ).

My problem is, if I don't call this coding the screen is not going in edit-mode, which it should do. But when I call the coding, it goes again through the original coding and so I can't delete the coding which I want to delete, because it is also called in the original one.

So what is my mistake? How can I avoid to call the original coding and the system is also going into the EDIT-Mode.

Thx in advance

Accepted Solutions (1)

Accepted Solutions (1)

Private_Member_19084
Active Contributor
0 Kudos

Does noone have a solution on this?

kumar5
Active Contributor
0 Kudos

Hi ,

First debug your super event and find which line of code enables the edit mode.

If I understood your requirement correctly then you can copy paste the super event code to your event and then remove the code except the code which is causing the edit mode.

Hope it helps

Thanks

Kumar.

Private_Member_19084
Active Contributor
0 Kudos

Thank you so much.

I don't know, but on this solution I didn't thought!

It works fine

kumar5
Active Contributor
0 Kudos

Good to hear that it worked.

Thanks

Kumar.

Answers (2)

Answers (2)

chetan_mishra
Participant
0 Kudos

Christian,

You will have to include the code

super->eh_onedit(

   htmlb_event    = htmlb_event

   htmlb_event_ex = htmlb_event_ex ).

Without this the document will not change to EDIT mode. If your requirement is to perform certain validations, and based on the outcome of these validations, the document should conditionally move to EDIT move, then you must write the above after the validations are performed, and call the method(super->eh_onedit) only if the validations Suceed.

If you want some additional functionality, you must write it after the method call.

If you want, that some of the standard codes are not executed, you will have to somehow undo the changes done by standard codes, through your own codes written after the method call.

We may help you better if you could explain the change requirements in brief.

Regards,

Chetan Mishra


Former Member
0 Kudos

Hi Cristian,

If you want to redefine the method and u dont want to run the standard code then you don't call the super method, so then  standard code will not be executed and then write your custom code which suits your specific requirement.

Here if your requirement is to get into edit mode when the user clicks on EDIT then no need to redefine the method also, the standard code will run and then view will be displayed in edit mode.

We actually redefine a method either to add some more code( functionality ) to the existing code ( functionality )  or to override the existing functionality.

It depends on requirement whether to call super when we redefine a method but it's not mandatory.

Thanks & Regrads,

         DP.

Private_Member_19084
Active Contributor
0 Kudos

Thank you for your help.

But I don't know, why it is not going into EDIT-Mode or which coding I Need to implement, that it goes into edi-mode.

I copied the original coding into my re-definition.

And then I did delete the coding (something which gives an popup) which I don't Need.

However, when I call my Definition, the sysetm is not going into edit-mode.

only when I implement the "super->eh_onedit...".

But then it is also going through the original-coding, what I don't want.

So I doN't know what is my error???