Dear all,
I read some documents and I trying to understand the basic use of COC ( Chain of command )
Suppose I wants to add my own customized code in STANDARD METHOD on standard Table OR Class OR Form in MIDDLE, then it's possible only through COC.
We can use Pre and Post Event handler before OR after base code executing. I can't cal these event handler in middle of BASE code. So, we need to use COC to add my custom code in middle of BASE code.
So, first we need to create a EXTENSION Of that Class OR Table OR Form whatever...
We can call like Tablestr() OR formstr() OR classstr()
Extension of(Tablestr(PriceDiscAdmTrans))
Public final class myPriceDiscAdmTrans_extension
Public Boolean validateWrite()
Boolean ret;
ret = next validate write();
If(!this.fromdate)
ret = checkfailed("Frontage must be filled in...");
So, here it execute first the Standard method and then it execute my validation ( customized code).
Kindly verify. Ist correct?
Please give me more she'd on this.
Thanks!