Create Custom Record Search Functionality on Account Object using ‘for:each template’ With Table Rows And Cells In Salesforce Lightning Web Component — LWC

Vijay Kumar
2 min readSep 17, 2020
Create Custom Record Search Functionality on Account Object using ‘for:each template’ With Table Rows And Cells In Salesforce

Hey guys, today in this post we are going to learn about Create Custom Record Search Functionality on Account Object using ‘for:each template’ With Table Rows And Cells In Salesforce Lightning Web Component — LWC.

Files we used in this post example:-

lwcSearchAccountList.html

Lightning Web Component HTML

It is Templae HTML file where we are used to write HTML element for build user interface.

lwcSearchAccountList.js

Lightning Web Component JavaScript

It is hold Search function and fetch the account name value from database server.

lwcSearchAccountList.js-meta.xml

XML Meta

It is used for where this lightning web component should be exposed.

lwcSearchAccountList.css

Component Style CSS

It is used for create custom table row border color and padding space.

lwcApexController.cls

Apex Controller

It is used for Search Account name from database sserver

Live Demo

Other post that would you like to learn

Step 1:- Create Lightning Web Component : lwcSearchAccountList.html

SFDX:Lightning Web Component >> New >> lwcSearchAccountList.html

lwcSearchAccountList.html [Lightning Web Component HTML]

Step 2:- Create Lightning Web Component : lwcSearchAccountList.js

SFDX:Lightning Web Component >> New >> lwcSearchAccountList.js

lwcSearchAccountList.js [JavaScript Controller]

Step 3:- Create Lightning Web Component : lwcSearchAccountList.js-meta.xml

SFDX:Lightning Web Component >> New >> lwcSearchAccountList.js-meta.xml

lwcSearchAccountList.js-meta.xml [LWC Meta Data XML]

Lightning Web Component Meta XML

Step 4:- Create Lightning Web Component : lwcSearchAccountList.css

SFDX:Lightning Web Component >> New >> lwcSearchAccountList.css

lwcSearchAccountList.css [LWC Meta Data XML]

Step 5:- Create Lightning Web Component : lwcApexController.cls

SFDX:Create Apex Class >> New >> lwcApexController.cls

lwcApexController.cls [Apex Class]

Originally published at https://www.w3web.net on September 17, 2020.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response