fetch data from multiple different object in VFP -- www.w3web.net

Create visualforce page to retrieve data from multiple custom objects using custom controller wrapper class and display data in a table of VF page in Salesforce

Hey guys, today in this post we are going to learn about how to retrieve data from multiple custom objects using custom controller wrapper class and display data in a table of VF page in Salesforce.

Files we used in this post example

myWrapperClassCustomObjVfp.vfp Visualforce Page It is used to Create VF page to retrieve data from multiple objects and display data in table.
customPathStatusCtrl.apxc Apex Class Controller It is used to retrieve data from multiple custom objects using custom controller wrapper class.
Custom Object

carModel__c:- Name,car_model_master_rel__r.First_Name__c

carMaker__c:- Name

truckModel__c:- Name, brand__c, color__c, company__r.Name

Custom Object and their fields Fetching data from multiple different custom object in one page using custom controller

Final Output

retrieve data from multiple custom objects in visualforce -- w3web.net

Other related post that would you like to learn in LWC

Create Visualforce Page

Step 1:- Create Visualforce Page : myWrapperClassCustomObjVfp.vfp

From Developer Console >> File >> New >> Visualforce Page

myWrapperClassCustomObjVfp.vfp [ Visualforce Page]

Create Apex Class Controller

Step 2:- Create Apex Class : myWrapperCustomObjCtr.apxc

From Developer Console >> File >> New >> Apex Class

myWrapperCustomObjCtr.apxc [Apex Class Controller]

retrieve data from multiple custom objects in visualforce -- w3web.net

Further post that would you like to learn in LWC

3 thoughts on “Create visualforce page to retrieve data from multiple custom objects using custom controller wrapper class and display data in a table of VF page in Salesforce”

Leave a Comment