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
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 | To know more, Use this link..
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]
Further post that would you like to learn in LWC
Tags Create VF page with data from multiple objects, How to dispaly multiple objects data in to VF page, how to fetch data from multiple different object in one page using custom controller, How to fetch other object records in VF Page, How to get fields from a visual force page, How to retrieve data from multiple objects using custom controller wrapper class, Retrieve data from custom object on Visualforce page, Visualforce — Display fields from multiple objects, Visualforce page to return data from multiple object, VisualForce- Display data from multiple object
Originally published at https://www.w3web.net on May 25, 2021.