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: LWC
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…
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…
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…
Close Quick Action from Lightning Web Components
Lightning Web Components are not supported as Quick Action. But we can use them with Lightning Component to overcome this. But issue come if we want to close Quick Action Modal from Lightning Web Components (LWC). Today we will cover how we can close the Quick Action Modal from Lightning Web Components.For the demo purpose…
Create Popup/Modal in Lightning Web Components
Popup/Modal is very useful component. It can be used to display notification, important Mesage to users. Today we will create a Popup/Modal in Lightning Web Components (LWC) which will support all UI experience.We can also set message and heading dynamically so you just need to include this component as child and you can call it…
Dynamic Picklist Value in Lightning Web Components
Today we will check how we can get Dynamic Picklist Value in Lightning Web Components without using Apex. We can use this component to get values for any picklist field. We are using attribute to pass the object and Field name and then the component will display available values. It also filter values based on…
Open Source Lightning Web Components : Connect With Salesforce
In my last post we have created one dummy app using Open Source Lightning Web Components. Now in this post we will extend that component and will connect Open Source Lightning Web Components with Salesforce. We will fetch data from Salesforce and will display it on UI. We will continue from where we left in…