How Can One Utilize ChartJS Within A lightning Web Component To Produce A Chart

Nowadays, in the era of Data Science, emphasis is placed significantly on data visualization. Presenting data visually holds substantial sway over the user interface. However, constructing personalized, adaptable charts and graphs within Salesforce poses a challenge. Open source solutions stand out as one of the finest options for addressing this need. ChartJS, an open source …

How Can One Utilize ChartJS Within A lightning Web Component To Produce A Chart Read More »

Creating A Universal Class For Simulating REST Callouts in Unit Tests

I’m initiating a new routine of weekly blog posts, beginning with advice on crafting a versatile class or a mock factory to simulate interactions with an external third-party service. What’s the rationale behind using a mock When running unit tests the platform does not allow to do a callout to external dependencies. To test our …

Creating A Universal Class For Simulating REST Callouts in Unit Tests Read More »

Communication Between parent And Child Components in Lightning Web Components LWC

We’re all familiar with the prominence of Lightning Web Component (LWC) as one of Salesforce’s programming models for building Lightning Components. It stands out among Salesforce developers and receives commendation from the company itself. Wondering why it’s widely adopted? Well, its speed and lightweight nature make it a top choice. The primary objective behind adopting …

Communication Between parent And Child Components in Lightning Web Components LWC Read More »

Investigating An Integrated Async Apex Framework

Which async Apex framework is the ideal choice? This blog presents a solution that automatically selects between Batchable or Queueable Apex for your needs. Batchable and Queueable are the two predominant async frameworks available to developers on the Salesforce Platform. When working with records, you may find yourself wondering which one should you be using. In this post, …

Investigating An Integrated Async Apex Framework Read More »

Callback for Errors in A Lightning Web Component

In this section, we’ll delve into the errorCallback() function in Lightning Web Component. Sample  Example parent.html parent.js child.html child.js Console Output In the console, we observe that the error is managed by the parent component due to the presence of the errorCallback() within it. Had we not included errorCallback() in the parent component, the output …

Callback for Errors in A Lightning Web Component Read More »

Lightning Component Modal Popup in Salesforce

Creating a custom Lightning Modal/Popup Box within a Salesforce Lightning component is the focus of this post. What does Modal mean in Salesforce Lightning Experience Modals/Popup Boxes serve to showcase content in a layer positioned above the application. This design is frequently utilized for tasks like creating or editing records, displaying various types of messages, …

Lightning Component Modal Popup in Salesforce Read More »

Lightning Record View Form

The lightning-record-view-form component serves as a wrapper that takes a record ID and is utilized to showcase one or multiple fields and their associated labels using lightning-output-field. This component necessitates a record ID to exhibit the record’s fields, without the need for additional Apex controllers or Lightning Data Service. It inherently manages field-level security and …

Lightning Record View Form Read More »

Toast Messages in Lightning Web Components LWC

Toast messages in LWC (Lightning Web Components) allow for the notification of success, error, warning, or simple information. To showcase a toast notification within Lightning Experience or Lightning communities, the ShowToastEvent needs to be imported from the lightning/platformShowToastEvent module. Dispatching this toast can be triggered by an event, such as a button click. Adding a …

Toast Messages in Lightning Web Components LWC Read More »