Today we will check how we can do error handling in Lightning Web Components (LWC). For this, we will create a utility method. Check my previous post for how we can share JavaScript code in Lightning Web Components and create a utility method. We will also use the Custom alert notification component to display the…
Tag: Lightning Web Components
Details regarding new Lightning Web Components. They follow the latest web standards.
Share JavaScript Code in Lightning Web Components
Sometimes we need to share JavaScript code in Lightning Web Components (LWC). As code reusability is good feature and we can use same in LWC as well. To share JavaScript code between Lightning Web Components we need to create ES6 module. An ES6 module is a JavaScript file that explicitly exports variables or functions that…
Salesforce Spring ’21 Release Notes: Quick Overview
So Salesforce Spring ’21 Release Notes are here. And this means lots of new and exciting features are coming. Although we have already covered few of them. So lets take a quick overview of all the upcoming features. Salesforce Spring 21 Release Notes points related to Salesforce Admin Lightning Flow Is Now Salesforce Flow The…
Local Development Server for Lightning Web Components
If you also use Playground to quickly test Lightning web components, then you are also aware that Salesforce will shut down playground in December 2020. But don’t worry we have Local Development Server for Lightning Web Components. The Local Development Server is a Salesforce CLI plug-in that configures and runs a Lightning Web Components-enabled server…
Async-Await in Lightning Web Components
In the last post, we checked Promise in Lightning Web Components. While they provide easy control to Asynchronous JavaScript, but they also need different code syntax. Recently a new feature is added in JavaScript Async-Await. So today we will check how we can use in Async-Await Lightning Web Components to improve the flow.Async-Await builds on…
Promise in Lightning Web Components
Promise in Lightning Web Components is very important. In LWC we call methods Asynchronous. So we don’t have much control in order of execution if we have multiple methods. Prior to promises events, callback functions were used but they had limited functionalities and created unmanageable code. Promises are the ideal choice for handling asynchronous operations…
Callout from Lightning web components
Today we will check how we can make Callout from Lightning web components. We have two methods available here. Firstly we can call the Apex and from there we can make SOAP or REST API callout. and Secondly, we can directly make a simple REST call from the Lightning web components’ controller.So today we will…
Salesforce Summer 20 Release Notes : Quick Overview
I hope you are doing well and your dear ones are healthy amid the whole COVID -19 situation. As most of us working from home so I utilize this time to cover Salesforce Summer 20 Release Notes. With this release Salesforce has introduced many new feature which we will defiiniately used in our Development/Admin work….
lightning-record-form Lightning Web Component (LWC)
lightning-record-form is a Lightning Web Component (LWC) alternative of apex:detail tag. Lightning-record-form allow us to create forms to add, view, or update a record. This component provide us these features: Switches between View and Edit mode when use start editing form in view mode Provide standard Save, Cancel options without any custom code Use the…