You need to sign in to do that
Don't have an account?

Display grouped data
I am hoping to produce Controller/VF pages to display data in the following manner. I think I need to use wrappers, but I am not sure what I am doing. I would really appreciate any help. Thank you! Michele
Account.tier
Account.Name Contact.Name
Account.Name Contact.Name
Account.Name Contact.Name
Account.tier
Account.Name Contact.Name
Account.Name Contact.Name
Account.Name Contact.Name
Account.tier
Account.Name Contact.Name
Account.Name Contact.Name
Account.Name Contact.Name
Account.tier
Account.Name Contact.Name
Account.Name Contact.Name
Account.Name Contact.Name
https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_groupby.htm
Here is a potential link that might help using repeat to display in a simple format.
https://developer.salesforce.com/forums/?id=906F0000000BQCqIAO
If you share your SOQL w/ the Group By then that would help be able to give a more direct answer.
********************************************************************************************** *DisplayGCMembers.apxc* public with sharing class DisplayGCMembers { ApexPages.StandardController con; account ee; Listlstaccount = new List(); Listlstcontacts = new List(); public DisplayGCMembers(ApexPages.StandardController controller) { con=controller; } public Listgetconts() { ee=(account)con.getRecord(); lstcontacts.clear(); accIds.clear(); lstaccount.clear(); if(ee.nameaccIds = new set(); }
https://developer.salesforce.com/forums/?id=906F0000000BQCqIAO
https://developer.salesforce.com/page/A_Deeper_look_at_SOQL_and_Relationship_Queries_on_Force.com
*Apex* public with sharing class DisplayGCMembers { ApexPages.StandardController con; account ee; Listlstaccount = new List(); Listlstcontacts = new List(); public DisplayGCMembers(ApexPages.StandardController controller) { con=controller; } public Listgetconts() { ee=(account)con.getRecord(); lstcontacts.clear(); accIds.clear(); lstaccount.clear(); if(ee.nameaccIds = new set(); }
Example below using the add a code sample...
System.Assert*
Typically you should have a single Assert per test scenario to make it easier to manage test code and better trackdown functionality related to UT failures.