Lightning Data Service – Lightning Record Edit Form

Most Powerful Component – lightning-record-edit-form. Using this component, we can show and edit the record in a customized way. We can override the Save functionality and override the default behavior using this component. We can use lightning-input-field as well as lightning-output-field component into this component. It also doesn’t support all …

15,681 total views, no views today

Lightning Data Service – Lightning Record View Form

lightning-record-view-form component will display the record details by using record-id and lightning-output-field. This component is also based on LDS(Lightning Data Service). We will show the user record by lightning-record-view-from component. So, we have built a LWC named “showLRVFRecord“. Step 1: As per previous examples, we need to update the “showLRVFRecord.js-meta.xml” …

14,396 total views, 3 views today

Lightning Data Service – Lightning Record Form

We can show the Salesforce Record using lightning-record-from Salesforce base component which is based on LDS(Lightning Data Service). Even, System will allow to edit the record in standard way using this component. We will show the user record by lightning-record-from component. So, we have built a LWC named “showLRFRecord“. Step …

10,058 total views, no views today

How can you get the inputs directly without using the onchange event?

Till now, we have seen when we want to capture the value of input fields, we have used “onchange” event into the input fields just like In this “onchange” event procedure, always we are sending the values from input fields to JS file. Is there any way to get the …

21,365 total views, 3 views today

Lightning Web Component with Salesforce Data

Now the big question is how Lightning Web Component will communicate with Salesforce Data or Lightning Platform Database. There are many more strategies to get the data from Salesforce via Lightning Web Component. Please read the following strategies to communicate between Lightning Web Component and Lightning Platform Database. Lightning Data …

10,506 total views, 6 views today

How to set Design Attributes in Lightning Web Component?

To set the design attributes in Lightning Web Component, we have to work on configuration file or component.js-meta.xml file. We have created a Lightning Web Component named “configurator“. Step 1: Need to update the configurator.js-meta.xml file to set the visibility in Lightning App Builder. configurator.js-meta.xml Step 2: Need to write …

17,340 total views, no views today

How to use assignment operator in conditional statement in LWC?

As per current release[Spring 19], you can not use assignment operator in conditional statement in html file of Lightning Web Component. That means, you can not put any condition in or the following syntax of html is invalid. template if:true={count==4} — Invalid To understand this exercise, we have created one …

30,148 total views, 3 views today

Get & Set in Lightning Web Component

In this session, we will learn how to use get & set method in Lightning Web Component. Generally, GET method returns value and SET method sets the value. We will follow the same way as in other OOPS Programming Language, JAVA. To understand this exercise, we will see when user …

68,739 total views, 9 views today

Navigation Mechanism in Lightning Web Component

Navigation Mechanism is the way to redirect a new web page, new record, edit record, record detail page etc. without using Apex Class. We have created one Lightning Web Component named “lightningNavigation“. Step 1: Need to update the lightningNavigation.js-meta.xml file to set the visibility in Lightning App Builder. lightningNavigation.js-meta.xml Step …