You need to sign in to do that
Don't have an account?
Siddharth Lakhotia
I want to display this table on my VF Page. Can anybody recommend code for it
I want to display the count of all the stages of opportunity field related to account ? Can somebody suggest the code for it ?
Acccount Name | Closed Won | ClosedLost | Progressive | Validation |
Acc1 | 8 | 4 | 5 | 2 |
Acc2 | 6 | 5 | 2 | 4 |
Acc3 | 1 | 9 | 0 | 7 |
Acc4 | 5 | 6 | 5 | 6 |
pcon
You can do this a couple of ways. You can either try to generate one (or more) AggregateResult queries to generate this, or query all of the data yourself and then generate the counts. The building the data set is the hard part, the generating the visualforce display is the easier part. Below is an example of part of the controller code you'd need