function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ashok S 7Ashok S 7 

how to display the sum of revenue on record detail page

Hai,
I have one requirement.
opportunity object is there it is self relationship.it contains revenue field.It contains 20 releative opportunities. it is possible to sum all the revenue field values and diplay on the record detail page . this requirement is done in the trigger only.

please help me any one
Ajay K DubediAjay K Dubedi
Hi Ashok,
You can either use roll-up summary field or formula field. 

For roll-up summary field refer to :http://https://help.salesforce.com/apex/HTViewHelpDoc?id=fields_about_roll_up_summary_fields.htm&language=en (http://https://help.salesforce.com/apex/HTViewHelpDoc?id=fields_about_roll_up_summary_fields.htm&language=en)
And for formula field refer to : http://resources.docs.salesforce.com/198/0/en-us/sfdc/pdf/salesforce_useful_formula_fields.pdf

Thank You