Have You Used Rollup Component? Describe How?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this answer should be reported.
Ch Kashif
If the user wants to group the records on particular field values then rollup is best
way to do that. Rollup is a multi-stage transform function and it contains the
following mandatory functions.
1. initialize
2. rollup
3. finalize
Also need to declare one temporary variable if you want to get counts of a particular
group. For each of the group, first it does call the initialize function once, followed by rollup function calls for each of the records in the group and finally calls the finalize function once at the end of last rollup call.