Skip to content
Personal D365 blog
Menu
  • About
Menu

Chain of Command Next() placement

Posted on 2022-10-11 by jdekker

When using chain of command (code extension of a class / table or form) you need to use the next keyword to execute the original code before or after your code.

public void init()
{
     // your logic before

     next init();
     
     // your logic after
}

If statements around a next keyword are not allowed.

public void init()
{
     if (true) // this is not allowed!
     {
          next init();
     }
}
© 2023 Personal D365 blog | Powered by Minimalist Blog WordPress Theme