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

Re: Do prepare output.

$
0
0

Hi Girish,

 

This is Usually done when you need standard functionality but want to add something extra.

 

Consider a scenario where you have a standard Component which contains a View. Now In that View's IMPL there is DO_PREPARE_OUTPUT this methods has codes to add Toolbar Buttons and many other Functionalities.

 

But you need some extra functionality for this View, and this coding needs to be done in DO_PREPARE_OUTPUT. in normal case we would Enhance the Component and Redefine DO_PREPARE_OUTPUT.

 

Here is where this SUPER concept comes in. When you redefine the method all the old codes which add button's and all will be in SUPER->DO_PREPARE_OUTPUT.

So If you need all those buttons as well as new functionality that you added by redefining,

There are 2 ways.

1- Copy old code of DO_PREPARE_OUTPUT and Paste it in Redefined method also.

2-CALL SUPER->DO+PREPARE_OUTPUT.

 

Both Does the same thing.  But as you can see 2nd method is the Ideal way to do it.

 

 

Regards,

Pratheek


Viewing all articles
Browse latest Browse all 7775

Latest Images

Trending Articles



Latest Images

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