Posts

Showing posts from March, 2020

Building Generic Lightning Component (Custom Clone Functionality)

Image
In this blog I am going to tell you about writing generic Lightning Component which helps to reduce your effort. It is definitely going to take more effort to write generic component but just think about what will happen once you will finish your Lightning Component. It will save lot of your effort in future. So the question is why generic component takes more effort than specific Lightning Component. The answer is we need to think about every possible scenarios. Let's take one simple requirement. Requirement:  Build a generic Clone functionality on Account Object which copies only specific field's data of a record instead of all fields. Step 1: So the requirement is specific to Account Object so lets start building a Custom Lightning Component. To implement clone functionality first I will create a Lightning Component in which I will use force:createRecord method to create new record and in force:CreateRecord we have attribute which can auto-populate fields. So ...

Followers