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?
If you are using Lightning Experience then you must be waiting for some key features to roll out in LEX as they are very crucial for your business. Salesforce Product Team is working very hard to deliver things asap but it's always very hard to deliver all the features due to time constraint. I came across a … Continue reading Do you want to add HTML Email Status related list in Lightning Experience?
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
If there is a need of scheduling an apex job or schedulable apex class after each hour then cron expression is the best way. Cron expression allows you to schedule a job on a specific time. Following cron expression runs a job after each hour of the day. Cron expression is built with following parameters … Continue reading Salesforce Cookies #3
Now using Lightning Design System in Lightning Application is easier - No static resource is required to include CSS files. An application automatically gets Lightning Design System styles and design tokens if it extends force:slds. Same behaviour can be accomplished in Visualforce pages with the help of apex:slds component. Include <apex:slds /> in a Visualforce page to use Lightning … Continue reading Salesforce Cookies #2
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."/>
Recently, while answering on developer forums. I came across a question where someone asked about a lightning component to display records in the table using a fieldset. I tried to put my effort to create a generic lightning component which can be used with any object and a fieldset. This component can be used to … Continue reading Lightning Component – Display records in a dynamic table using FieldSet on any object