Skip to main content

Posts

Showing posts from December, 2020

Understanding Events In Lightning Web Component Using Pagination

  Agenda The blog will teach us how to work with events and communicate with different components using events. We also implement Pagination and see how can we generate a Global Pagination Class. Blog Details This blog gives us a brief about how can we communicate between different Lightning Web Components and use custom events and play with them.  And we also implement pagination using events in this blog and made it generic. What we are going to do In this blog, We create custom events and use that event to handle pagination dynamically. Requirements: You need to have access to your org.            Should have installed the VS Code Installed in your system.            You should have some basic knowledge of Lightning Web Component.          You must have some proper records in your org to show data on the t...

Get Value of Selected Records on button click

Agenda In the previous blog, we see how can we select-deselect a checkbox using a master checkbox. But Selecting and Deselecting checkboxes is not enough while working on any project we also need values to play with them.   Blog Details   The blog gives us a brief that how we select and unselect all checkboxes from the header checkbox.   What we are going to do In this blog, we use a table to show the records with the checkbox for each record and a header checkbox to select - unselect all records with a submit button. And on that button click, we transfer the related record to the JS file of the component. Requirements: You need to have access to your org.    Should have installed the VS Code Installed in your system.    You should have some basic knowledge of Lightning Web Component. You must hav...

Select - Deselect checkbox in Lightning Web Component

  Agenda In the previous blog, we are working with a single record and manipulating it as per the requirements, but when we are working for the organization we need to think to cover larger aspects. And while working with salesforce data we should be aware of the fact that we might need to work with data in bulk. So, when we need to work with more than one record we use checkbox functionality and use that checkbox to see which record we need to make changes to. Blog Details The blog gives us a brief that how we select and unselect all checkboxes from the header checkbox. What we are going to do In this blog, we use a table to show the records with the checkbox for each record and a header checkbox to select - unselect all records. Requirements: You need to have access to your org.     Should have installed the VS Code Installed in your system.    You should have some basic knowledge of Lightning Web Component. You must have some proper records ...

Using Data - Attributes in Lightning Web Component (LWC)`

  Agenda      While working with Salesforce data we need to play with Id’s (Identifiers). An ID can be associated with a Record or with a specifier. While working with records when we need to make changes or view any particular record details, we need their ID’s, as I describe in my previous blog’s how can we show or edit any salesforce record with the help of Basic components of Salesforce.  To create forms that let users view, edit, and create Salesforce records, use Lightning-record-form, Lightning-record-edit-form, and Lightning-record-view form components. And To use these components we need Salesforce Record ID. Blog Details This Blog gives us a brief about how can we get a particular record Id or value after any event using Data - Attributes.  What we are going to do In this blog, we use Data - Attribute functionality from HTML5  in our Lightning Web Component and use data attribute to get...