Re: calculated fields easy
It is a very good approch for computed fields.
But my personal opnion is whether some information is really computed it don't have to be store it on database, it has to be calculated on runtime. Because sometimes the field contents is based on external infos that could be changed after trigger execution, and then when you read this information back it could be obsolete.
Sugar provides a simple way to do that using fields managed by a PHP function, and this function receives automatically an object named $bean which already has all attributes filled supporting an easy computation of new fields.
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
Bookmarks