on 09-04-2013 8:51 AM
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
Does noone have a solution on this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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???
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.