I have created a custom object that holds a record of the user and a Map (string to integer) of closed case types to number closed. My controller has a list of this custom object and I need to generate a table that will display the name of the user, what they closed, and how many they closed. It should look something like
Username Case Type Num Closed
User1 Type1 8
User1 Type2 5
User2 Type1 9
User2 Type3 1
User2 Type1 10
While I don't understand how to do it in VF this is like the sudo code version of it:
for(TeamMember tm : team){
table.col1Val = tm.Name;
for(Map<String, Integer> rec : caseTypeToNumClosedMap){
table.col2Val = rec.Key();
table.col3Val = rec.Value();
}
}
I don't know how this would work exactly especially since this table will need to export nicely to excel so I'm not sure if dataTables inside of dataTables would be an option (if that's even possible).