Skip to main content

Posts

Showing posts from September, 2023

Chain of Command

Chain of command is used to write extension of code for a standard Table or Form which we need to be overwrite and make changes according to ours   Chain of command can be used in the following objects 1.Classes 2.Tables 3.Forms 4.Data source on a form. 5.Data field on a form. 6.Control of a form. 7.Data entities Steps to Follow in COC Step1: Name of the chain of command class we create must end with the _Extension. Step2: The keyword ‘final’ must be used in the class definition line. Step3: The class needs to have the attribute        [ExtensionOf(classStr(<NameOfBaseObject>))]    The “ classStr ” text above will change depending on the type of base objecting you are extending. -> Below are the extensions used based on where we are using chain of commands.  -> When extending a class, use classStr(<NameofBaseClass>) -> When extending a table, use tableStr(<NameOfBaseTable>) -> In the case of a form, use formStr(...