child to parent query for custom objects in salesforce --w3web.net

Retrieve data of Cross-object(Lookup/Master-Detail) from child to parent for custom objects and navigate to record detail page in lightning component Salesforce

Hey guys, today in this post we are going to learn about How retrieve data of Cross-object(Lookup/Master-Detail) from child to parent for custom objects and navigate to record detail page in lightning component Salesforce.

Files we used in this post example

childParentCmp.cmp Lightning Component It is used for create a table for display the related list Values from child to Parent
childParentCmpController.js JavaScript Controller File It is hold Javascript doInit and navigate functionality to navigate on sObject record.
childParentCmpHelper.js JavaScript Controller Helper File It is hold for Javascript Helper Function Communicate to Related Queries Values (Child to Parent) from apex method
childParentCmpCtrl.apxc Apex Class Controller It is used for get SOQL query from Child to Parent from Apex Method

Live Demo

child to parent query for custom objects in salesforce -- w3web.net

Other related post that would you like to learn in lightning component.

Step 1:- Create Lightning Component : childParentCmp.cmp

From Developer Console >> File >> New >> Lightning Component

childParentCmp.cmp [Lightning Component File]

Step 2:- Create Lightning Component : childParentCmpController.js

From Developer Console >> File >> New >> Lightning Component >> JavaScript Controller

childParentCmpController.js [JavaScript Controller]

Step 3:- Create Lightning Component : childParentCmpHelper.js

From Developer Console >> File >> New >> Lightning Component >> JavaScript Helper

childParentCmpHelper.js [JavaScript Helper File]

Step 4:- Create Apex Class : childParentCmpCtrl.apxc

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

childParentCmpCtrl.apxc [Apex Class Controller]

Child to Parent query for custom objects in Salesforce -- w3web.net

Further post that would you like to learn in lightning component.

Leave a Comment