I am following this idea since I needed this feature in one of my projects. Since Salesforce already has this in their future roadmap, I realized that It could be an addition to my #GivingBackToCommunity list. I managed to create a lightning component which can be used with lightning action on Opportunity records. This will … Continue reading Clone Opportunity with Products action on Opportunities ( Lightning Component )
Custom Metadata Type has become an essential ingredient when it comes to developing a configurable app in Salesforce. Many ISVs app on AppExchange is using CMT ( Custom Metadata Type ) in their apps. You may have used custom metadata types too in your app but when it comes to inserting/updating records using apex, you … Continue reading How to create/update custom metadata record using apex (Lightning Component)
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
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
While working on a lightning component development, I found that there is no standard way to open a lighting component in a new tab. You can find the same problem being asked on developer forums. So, to be honest there is no standard way to achieve this behaviour. I used a workaround to get this … Continue reading Are you looking for a way to open a lightning component in a new tab/window on detail page button click?
Having trouble with <lightning:input type="date"> and <ui:inputDate> components? Then why don't you use Jqyery Datepicker? Jquery datepicker gives a lot of flexibility and freedom to developers to let them use a datepicker as per business needs. A developer can enforce validation on dates and date range which is very hard to impose using these out-of-the-box components … Continue reading Jquery Datepicker in Lightning Components for better control on behaviour of Datepicker
Accessing record ID in the Lightning component is very simple. Just use following things. Implements force:hasRecordId interface in the component as follows. <aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global"> Define an aura:attribute as follows. <aura:attribute name="recordId" type="String" description="The ID of the record to be displayed. Provided by force:hasRecordId interface."/>