How to create charts using D3 Library in Lightning Components

D3.js is the most popular library for creating interactive charts in any web application. You can also use D3.js library in Lightning components for graphical representation of data. These charts can be used to give sales insights to a member ( Salesforce user) of the sales team.  This article will show how can we leverage D3.js … Continue reading How to create charts using D3 Library in Lightning Components

How to create table with resizable columns using Lightning Design System ( Column Resizable DataTable )

Lightning design system comes with some really nice cascading stylesheet but still, there are some components where JS support is not provided. During a project, I came across the same where I had to write Javascript code by myself. After going many rounds of testing and changes, finally, I managed to get it working. It's … Continue reading How to create table with resizable columns using Lightning Design System ( Column Resizable DataTable )

Salesforce Cookies #12

How to remove the arrows from lightning:input[type="number"]? I think this is a generic question and Salesforce devs have looked for the ways to get rid of the spin buttons on the input field without changing it to text type for a purely numeric behaviour. You just need a few lines of CSS to solve your problem. … Continue reading Salesforce Cookies #12

How to recreate modal component for force:lightningQuickActionWithoutHeader

If you are building a lightning component for a lightning-quick action then you must be having a hard time to add additional buttons to the footer. If you are implementing the force:lightningQuickActionWithoutHeader interface in the component then you can get rid of the default header and footer and can create your own footer with the … Continue reading How to recreate modal component for force:lightningQuickActionWithoutHeader

Salesforce Cookies #11 ( Salesforce Admin Special )

Is there a way to mass-check Checkboxes when updating a Profile's Object's Field-Level Security? Of course, there is. You can do it through your browser's console. You just need the following Javascript code snippet which will do the job for you. For the Edit Permission var checkboxes = document.querySelectorAll(".displayedCol input"); for (var i = 0; … Continue reading Salesforce Cookies #11 ( Salesforce Admin Special )

Salesforce Cookies #10

Creating a dynamic SOQL which includes all the fields I have seen this question several times on developer forums and I thought it could be another addition to Salesforce cookies. If you are wondering how can you query all the fields of an object then you can use the following code snippet. This is quite … Continue reading Salesforce Cookies #10

Salesforce Cookies #9

Populating merge fields in Salesforce Email Template without sending the email / Preview Email Template Recently, I faced a challenge while working on a small project in which I had to send email through apex using email templates. I am calling it a challenge because of the problem I faced and I am sharing the … Continue reading Salesforce Cookies #9