function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ananthanarayanan NemmaraAnanthanarayanan Nemmara 

Query and display data in different table based on a feild

Hi All,

Can someone please let me know how can I seperate data received from a query into different tables in my vf page based on the value of a field being fetched?

Niket SFNiket SF
- Create Wrapper class to store SOQL result
- Bind List of Wrapper class to VF page instead of binding SObject result.

Ananthanarayanan NemmaraAnanthanarayanan Nemmara
Hi Niket,

Thanks for your reply. But me being a newbie on the development side it would be really helpful if you could share some sample code if you have. My aim is to show the open orders and invoiced orders in different tables in the related tabs of account page. So i this case I am querying in the orders table but i will have to segregate the output into different table based on whether they are open or invoiced.