Microsoft has introduced the Chain of Command(COC) with Platform Update 9.
- Developers can implement Chain on command across Classes, Tables, and Forms.
- We are able to implement our custom business needs on Pre and Post functionality to extensible methods in a much easier and readable manner than the previously used event handlers, also we can extend the logic of public and protected methods without having to use event handlers.
For an example, i am taking very small example of two cases as
Case 1: Before creating of production order we need to insert record in our custom table.
Case 2: After creating of production order we need to change its status from "Created" to "Estimated".
For above custom business need we need to follow below steps.
1. First we need to check Insert method of ProdTable and copy below highlighted code.
2. Create extension of ProdTable as shown below.
[ExtensionOf(tableStr(ProdTable))]
final public class ProdTable_Extension
{
public void insert(boolean _dropEstimated, Common _childBuffer, boolean _expandBOMRoute)
{
Case 1: Our Custom Logic before processing standard code. Working
like Pre Event Handler
// must call next when using Chain of Command pattern.
next insert(_dropEstimated,_childBuffer,_expandBOMRoute);
Case 2: Our Custom Logic after processing standard
code. Working like Post Event Handler
}
}
Default values of parameters are not required while implementing COC.
4 comments
Write comments
ReplyThe knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.Thank you for sharing wonderful information with us to get some idea about it.
oracle training in chennai
oracle training institute in chennai
oracle training in bangalore
oracle training in hyderabad
oracle training
oracle online training
hadoop training in chennai
hadoop training in bangalore
It was reaaly wonderful reading your article. # BOOST Your GOOGLE RANKING.It’s Your Time To Be On #1st Page
ReplyOur Motive is not just to create links but to get them indexed as will
Increase Domain Authority (DA).We’re on a mission to increase DA PA of your domain
High Quality Backlink Building Service
1000 Backlink at cheapest
50 High Quality Backlinks for just 50 INR
2000 Backlink at cheapest
5000 Backlink at cheapest
تصميم موقع مثل حراج
Replyعن طريق شركات تصميم مواقع فـ تصميم موقع حراج يمكنك ايضا السؤال عن حملات اعلانية و اسعار تصميم التطبيقات
Hoola Wonderful Writing Skills.Just AwesomeLinkfeeder2.0 Linkfeeder2.0 Linkfeeder2.0 Linkfeeder2.0 Linkfeeder2.0 Linkfeeder2.0 Linkfeeder2.0 Linkfeeder2.0 Linkfeeder2.0 Linkfeeder2.0
ReplyEmoticonEmoticon