Let's say I have an object 'Vegetables'. It has 3 fields. Name, Amount, Month.
So for each Month we have a record of the amount of each type of vegetable sold.
How would I go about displaying this in a format where the first column is the Name, then the columns to the right are the Month's totals.
Something like this:
I was thinking I had to use an aggregate but I'm not sure I can write one that ends up with the data in the correct structure. I'll probably use a Map> for the data.
The other problem I can't seem to figure out is the VF markup.
I would guess this is a fairly common problem. How is the best way to solve it?
thanks,
lee