+ Start a Discussion
Baktash H.Baktash H. 

Group By or an other way?


i have a small problem.

I want to put some information in a datatable.

I have an object with a field, type. lets say there is type A, B and C

The datatable should say

A    315 records

B   457 records

C  9874 records


Does this work with the Group By function? I ask because i couldn't realize it with that,

The easier way would be to make a datatable and list for every type, but thats not professional and the user should later be able to add types by himself without writing new apex.


Thanks in advance.