You extend the insert method of CustTable by using Chain of Command.
insert
CustTable
You need to display a message after a record is created when the Sales tax group is complete.
Which code segment should you use?
In a Chain of Command wrapper, next insert(...) invokes the next implementation in the chain, ultimately performing the standard record insertion. Placing the TaxGroup check and info call after that invocation makes the notification a post-insert action and limits it to customers that have a sales tax group. Wrapper methods must call next unconditionally. Microsoft Learn documents that next calls the next method in the Chain of Command sequence and that wrappers must call it.
next insert(...)
TaxGroup
info
next
Community Discussion