Results 1 to 2 of 2

Thread: Calculated field in reports

  1. #1
    matt.tart is offline Junior Member
    Join Date
    May 2011
    Posts
    5

    Question Calculated field in reports

    Is there any way to create a calculated column in a report. I'm trying to generate a report that shows Net Profit off of Quotes as a column in the report.

    I tried to do a calculated field on the Quotes, but our our net needs to subtract commission which comes from a field in a separate module. Calculated fields don't let you access other modules. I tried to set a workflow to pass the value to a commission field in the Quote but you apparently cannot pass a field value, you can only assign a hard value in workflows.

    So is there anyway to either do a calculated column in a report or pass a value from module to module. We're on demand so trying to do this without any code.

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calculated Field in to a Report
    By allan.pacheco in forum Help
    Replies: 0
    Last Post: 2010-03-09, 05:37 PM
  2. Calculated field
    By agey in forum Developer Help
    Replies: 0
    Last Post: 2010-01-25, 08:41 AM
  3. Calculated field
    By royke in forum Developer Help
    Replies: 2
    Last Post: 2009-01-22, 05:26 AM
  4. Calculated Field in DetailView
    By Mubi in forum Developer Help
    Replies: 4
    Last Post: 2008-08-19, 02:30 AM
  5. Calculated Field
    By avagarwal in forum Developer Help
    Replies: 1
    Last Post: 2008-06-25, 06:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •