Re: Calculated field in reports
When I have to do this I make the follow:
1. Create a task (php file) that when accessed compute the info that you want.
2. Create a custom field in your module to store this computed info.
3. The function create on step 1, should store the value on the field created on step 2.
4. Under admin you can create a scheduler to run each X minutes and access your page resposible for the field calculation.
Then you can use your custom field on reports, and your users will just have to know the computed fields could have at maximum X minutes of delay, which in many cases is not a problem.
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