Export Data in CSV using JavaScript in Lightning

Lightning and Lightning Web Components LWC Cover Image

In Visualforce we can use ContentType to export data in different formats. But what if we want to do same in Lightning? There is no inbuilt native support provided for this. So today we will check how we can export data in CSV using JavaScript in Lightning. For this we will create a component in … Continue reading Export Data in CSV using JavaScript in Lightning

Use Static Resource In Lightning Web Component

Lightning and Lightning Web Components LWC Cover Image

As a Salesforce developer we know how important Static resource are. We can upload and can refer them using CDN also. But it is always suggested to import third party library into salesforce static resource. If you still didn't started Lightning Web Components ( LWC ) you can do that here. Due to Lightning Web … Continue reading Use Static Resource In Lightning Web Component

Custom Toast Component in Lightning

Lightning and Lightning Web Components LWC Cover Image

In Lightning we can show toast message to show message to users. But they are not supported everywhere. So today we will create our own custom Toast component. 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 have … Continue reading Custom Toast Component in Lightning

Lightning Web Components: Datatable with LDS and Apex

Lightning and Lightning Web Components LWC Cover Image

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 LWC Datatable, LWC LDS RecordEditForm components. How to pass data between components using events and how to call apex method from Lightning Web Components(LWC). But … Continue reading Lightning Web Components: Datatable with LDS and Apex

Upload File to Google Drive Using Lightning Component

Lightning and Lightning Web Components LWC Cover Image

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. First we need to create oAuth app in google developer console https://console.developers.google.com/      Now after the connect app is created. You will get the Client ID , Client secret. … Continue reading Upload File to Google Drive Using Lightning Component

Dependent Picklist Using Lightning Component

Lightning and Lightning Web Components LWC Cover Image

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 … Continue reading Dependent Picklist Using Lightning Component

Lightning DataTable: Lazy Loading with Inline Editing and Actions

Lightning and Lightning Web Components LWC Cover Image

So we are in 2019. Happy new year everyone. Hope this year brings good luck to everyone. Previously we developed a Lightning DataTable with Lazy Loading In that post we can load large amount of data. But if we need to perform some action on that, that was missing. So I enhanced that component and included … Continue reading Lightning DataTable: Lazy Loading with Inline Editing and Actions

Lightning Global Search Component

Previously I have shared a search/Lookup component.  But using that we can only search one object at a time. So today I am sharing a global search component. Using this we can search on multiple objects.   https://gist.github.com/tushar30/230acd37cb064c75c1e6a03b9e0159d1 Here we are getting value when user change input. Currently it select few standard object and custom object, … Continue reading Lightning Global Search Component

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 … Continue reading Lightning:Map show data on Google Map

Lightning:RecordEditForm Save Data Without Apex

In the last post we check the Lightning:recordForm Which is a great tool. But there some limitation.  Like we can't prepopulate data in that. So today we will check another component, Lightning:RecordEdit form. It is very good component, using this we can create edit page, check our custom validation and store the data into Salesforce without … Continue reading Lightning:RecordEditForm Save Data Without Apex