How to get Current User Id, Record Id and Object API Name in LWC?

In this section, we will see how we can get the Logged-In User Id, Current Record Id and Object API Name by Lightning Web Component. Thanks to Salesforce again to provide such a beautiful mechanism to get the Logged-In User Id, Current Record Id and Object API Name in Lightning …

47,756 total views, no 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,579 total views, 3 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,387 total views, no 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 …

69,041 total views, 3 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 …

Toast Notification in Lightning Web Component

In this section, we will see how to display toast notification and how to take user input through Lightning Web Component. The toast notification behavior is same as Lightning Aura Component. Following steps need to be maintained to fulfill the business. We have created a Lightning Web Component named “displayToast.html” …

18,461 total views, no views today