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
VenkatVenkat 

Summary report on two fields using visualforce

Hi,

I want implement Summary report on two fields using visualforce. For example Account having rating and Status fields, needs to display like below, every thing should be apex and visualforce only.

User-added image
Pankaj_GanwaniPankaj_Ganwani
Hi Venkat,

It's not possible for me to explain the complete logic to achieve this functionality. Let me share you required data structure(wrapper class), you can fill the list of, and bind it with the page.

public class AccountWrapper
{
      public String type{get;set;}
      public List<RatingWrapper> lstRW {get;set;}
}

public class RatingWrapper
{
     public String rating{get;set;}
     public List<Account> lstAccount{get;set;}
}
 
VenkatVenkat
Hi Pankaj,

Thank You! for your reply. It will really helpful if you send me the more code detials on this. 
Can you please try to share on this.

Thanks
Venkat.