lightning-record-edit-form and lightning-record-view-form in LWC

In previous posts, we implemented Lightning Data Service in Lightning Web Components using lightning/uiRecordApi and Wire service to create and view records respectively. Click here to check how to create a record using Lightning Data Service. Click here to check how to view records using Lightning Data Service. In this post, we will create and … Read more

Get Record in LWC using getRecord of uiRecordApi

In this post, we will implement the functionality to Get Record in LWC using getRecord of uiRecordApi module with the Wire Service. In the previous post, we implemented the functionality to create a record using createRecord of uiRecordApi module which you can check here. Let’s just hop into the implementation. Implementation In this implementation, we … Read more

Create Record in LWC using createRecord of uiRecordApi

In this post, we will implement the basic functionality to create records in LWC using createRecord of uiRecordApi module. Let’s get into the implementation. Implementation In this implementation, we will create an Account record. We will display the Account record Id in the Alert box once the record is created successfully. Create a lightning web … Read more

Log in to Salesforce using Google Account

There might be a requirement where you want your users to log in to Salesforce using a Google account. In this post, we will implement the Single Sign-On with Google as an Authorization Provider so that we can log in to Salesforce using a Google account. Steps to Implement First, we need to enable My … Read more

Publish Subscribe Model (PubSub model) in LWC

In this post, we will use the Publish-Subscribe Model in LWC (also known as pubsub model in LWC) to make communication between two independent components. We can communicate between components which share the same hierarchy in the following ways: Parent to Child communication which you can check in detail here. Child to Parent communication which … Read more

JavaScript Properties in LWC (Lightning Web Components)

There are following types of JavaScript Properties in Lightning Web Components: Private and Reactive Properties Public Properties Getter 1. Private and Reactive Properties Private properties are only accessible in the component it is declared. It is declared using only an identifier name. We don’t have to provide any keyword for the datatype. We can also … Read more

Event Handling in LWC using JS Controller

In this post, we will implement Event Handling in Lightning Web Components using JS Controller. If you want to check how to handle events using Child component tag, please check this post. There are two ways of Event Handling in Lightning Web Components: Event Handling using the Child component tag. Event Handling in the JS … Read more

Event Handling in LWC (Lightning Web Components)

There are two ways for Event Handling in LWC (Lightning Web Components): Event Handling using the Child component tag. Event Handling in JS Controller. In this post, we will implement the event handling using Child component creation tag. There are two types of communication in Component hierarchy. Parent to Child communication where we need to … Read more