In Lightning we can use show toast event to show message to users. But they are not supported everywhere. So today we will create Custom Toast Component in Lightning. We have used SLDS toast here. So this component is supported on all UI, no matter if you are on LEX or in one.app Here we…
Category: Code Sample
Get Current User Details in Lightning Web Components
If you are a Salesforce developer or Admin the word hearing you most is Lightning Web Components (LWC). So today we will check how we can get Current User Id in Lightning Web Components. Finally using this Id we will fetch the user details and show them on UI. We will also do the same…
Lightning Web Components: Datatable with LDS and Apex
Current week is Lightning Web Components (LWC) week. So I tried my hands on it and created a sample app. Using this sample app you will get the idea of Lightning Web Component (LWC) Datatable, LWC Lightning Data Service ( LDS ) RecordEditForm components. We will also check how to pass data between components using…
Upload File to Google Drive Using Lightning Component
We have covered many points in lightning, but integration is the one we never touch. So today we will do Integration with google drive and upload File to Google Drive Using Lightning Component. Firstly we will do the Authentication with Google Drive. Once we get the Acces Token we will use that token to make…
Dependent Picklist Using Lightning Component
The number of base lightning component is increasing in each release. But there are still few missing area. One of them is Dependent picklist. So today we will create Dependent picklist using Lightning:select. This is a dynamic component, we just need to pass object name and dependent and controlling field. It will give you selected…
Lightning DataTable: Lazy Loading with Inline Editing and Actions
So previously we developed a Lightning DataTable with Lazy Loading component. But there are many standard features missing in that component. So I enhanced that Lightning DataTable component and included the support for inline editing, Row Level Action and pass the selected records in parent component.Here we can change multiple records. And on click of Save…
Popup/Modal in Lightning Component
Modal is a very useful component. Modals display a dialog in the foreground of the app, interrupting a user’s workflow and drawing attention to the message. A modal blocks everything else on the page until it’s dismissed. A modal must be acknowledged before a user regains control over the app again. Today we will create…
Lightning Global Search Component
So today we will create Global Search Component in Lightning. Previously I have shared a search/Lookup component. But using that we can only search one object at a time. But sometimes we need to do search on multiple objects. So today we will create a Lightning Global Search Component. We can use this component to search…
SFDX: Use With Non Scratch Org
Salesforce DX is the new IDE provided by Salesforce. So now we can use SFDX with Non Scratch Org. Previously we can use SFDX with environment hub and production orgs. Where we need to create scratch org to use it. But now we can use it with any org (Developer Edition / Sandbox). This makes…
Lightning:Map show data on Google Map
Winter 19 is rolling for everyone. I have shared some points which I like most in winter 19. Which you can read here. with winter 19 Salesforce introduce many components, one of them is lightning:map. It is very useful for developers. Previously when you want to show address on google map you need google api…