Skip to main content

Posts

Showing posts from March, 2021

Use Lightning Component at different places using Salesforce Targets

  Agenda      Using the blogs functionality we would be more clear about how we use Lightning Web Component over different places in Salesforce and how we can make it available. What we are going to do. So basically, I am writing this blog to give you an overview of where we can use Lightning Web Components in our Salesforce Org and outside the Salesforce Org and how we can display the name of the Component different from its original name. Lightning Web Component First of all, What is the lightning web component? So, The Lightning Web Components is lightweight and delivers exceptional performance. Most of the code you write is standard JavaScript and HTML. The Lightning Web Component is not just limited to Lighting Record or Home Page. We can use it at many places in the Salesforce org or outside the org. And to exposed the Lightning Web Component we first need to set the isExposed functionality of the Component present in the meta.xml file to true: <isExposed...

Custom Accordion functionality to display related child records

   Agenda      Using this blog’s functionality we are able to show any Parent-Child data or any other data of this type and we can show it in a very systematic way like an accordion. What we are going to do. So basically, we are going to create functionality like an accordion on our own as a custom runtime accordion and we use this to show Parent-Child data and also use runtime-local variables and other JavaScript functionalities in this lightning web component. Lightning Web Component First of all, What is the lightning web component? So, The Lightning Web Components is lightweight and delivers exceptional performance. Most of the code you write is standard JavaScript and HTML. And for more info follow the Documentation. Now First, we need to look for the data we are going to show over the LWC, and for that, I’m using the Parent-child relationship object of Accounts and Contacts, and to fetch the data I’m usi...

Creating Utils for dynamic use of Toast Messages

       Agenda This blog gives us a brief, about how we can create a library of one of the most used functionalities of our daily life. ‘ Toast Messages’ and use them over multiple components. What we are going to do We are going to create a util Component that serves as a library of toast messages for other components and provide them the functionalities of using toast messages. Lightning Web Component  Lightning Web Components is lightweight and delivers exceptional performance. Most of the code you write is standard JavaScript and HTML. For More Info:  Go through the Documentation.  So Basically, we are using toast messages to show the custom messages to the user with salesforce standardization. So, In place of using it over and over from the same and different components, we are going to create a Lightning Web Component that serves as the library for the other Lightning Web Components and in place of c...