Custom search and delete functionality in Salesforce by w3web.net

Custom record search and delete functionality in lightning component

Hey guys, In this post we are going to learn that how we can create a custom record search and delete record functionality in Salesforce lightning components.

In this example we will search Custom sObject records with an lightning input field.

Files we used in this post example:-

File Name File Type Description
studentInfoApp.app Lightning Component Application It is used for preview the component on browser.
studentInfoCmp.cmp Lightning Component It is used for Search Inpur field and Record User InterfaceTable.
studentInfoCmpController.js JavaScript Controller File It is used for search record and deleter record functionality.
studentInfoCmpHelper.js JavaScript Helper File Helper function called in the Javascript controller on Init function.
studentInfoCtrl.apxc Apex Class Controller It is used for For Search and delete record from database server

Custom Object:- student_info__c

Custom Object Fields:-

student_first_name__c

student_last_name__c

student_phone__c

 

Custom Object and their fields Custom object like database and custom fields are column of data table.

Step 1:- Create Lightning Application : studentInfoApp.app

From Developer Console >> File >> New >> Lightning Application

studentInfoApp.app [Component Application File]

Step 2:- Create Lightning Component : studentInfoCmp.cmp

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

studentInfoCmp.cmp [Lightning Component File]

Step 3:- Create Lightning Component : JavaScript Controller

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

studentInfoCmpController.js [JavaScript Controller]

Step 4:- Create Lightning Component : studentInfoCmpHelper.js

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

JavaScript helper function in Salesforce by w3web.net

studentInfoCmpHelper.js [JavaScript Helper File]

Step 5:- Create Lightning Application : studentInfoCtrl.apxc

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

studentInfoCtrl.apxc [Apex Class Controller]

Other related post that would you like to learn…

Step 6:-

Final Output

Search Record in Salesforce Lightning by w3web.net

Leave a Comment