Developing for Microsoft Dynamics GP by David Musgrave (Australia) and the Microsoft Dynamics GP Developer Support Team (USA)Syndicated From: http://blogs.msdn.com/b/DevelopingForDynamicsGP/
Click on the link to see the full About Page.
Here is another Quick Tip article. This time I wanted to discuss the best practices for making conditional triggers in Dexterity.
There are times where we might want to have a trigger which only runs under certain circumstances. There are a number of methods of handling these situations. This post will explain the various methods and when they should be used.
Some examples of when a conditional trigger might be used are:
So, now we have a number of reasons why we might need to make triggers conditional, what are the methods to create conditional triggers?
The four methods for creating conditional triggers are listed below:
In summary, the enabling and disabling of individual triggers method and the conditionally aborting method are the best methods to use. Dynamic or on-the-fly registration has its place, but enabling and disabling a product at a time is not recommended.
That's all for now.
David