Posts

Showing posts from 2017

Lightning table with multiple checkbox select options and filter table data.

Image
Hi All, This is good example of Lightning table with multiple checkbox selection and also you can filter the table data.For my convenience i have named the component as DefectTracker. DefectTracker.cmp    <aura:component controller="LeadController">     <aura:handler name="init" action="{!c.doInit}" value="{!this}"/>     <aura:attribute name="Leads" type="list" />        <aura:attribute name="check" type="boolean"/>     <aura:attribute name="Bools" type="list"/>     <aura:attribute name="key" type="string"/>     <!---Use Salesforce Lightning Design System CSS From Static resources-->       <ltng:require styles="{!$Resource.salesforcelightningdesignsystem + '/assets/styles/salesforce-lightning-design-system.css'}"/>         <!--declare attributes-->     <aura:attribut...

What to do when ever you are frustrated with Snort's of ua roomate

Hi, I know this is not relevant to salesforce but just thought would share my thoughts which would be helpful to others. I faced similar problem with my roommate. So guys what u gonna do when this freaky situation​ occurs..here is what u wanna do... You have two options: 1. Either you can plug earphones with very low noise music to avoid that Snort's,but that doesn't​ really help completely. 2. So you should wake your roomate halfway.That means you should see to it that he wakes up from his deep sleep(not completely) that you can do by slightly pushing him or opening lights etc by this his sleep will get disturbed and before u go to sleep he won't make it again. Also frns if he/she drinks before going to bed ask them not to do so because drinking loosens throat muscles which leads more dangerous snorting​.. Thumbs up if you find this solution perfect!!

Send Email to all Account related contacts

This  is working example of Email to Account related Contacts in Visualforce Page For this code to work you need to concatenate your url with Account id. <apex:page controller="sendEmail"> <apex:messages /> <apex:pageBlock title="Send an Email to Your {!account.name} Representatives"> <p>Fill out the fields below to test how you might send an email to a user.</p> <br /> <apex:dataTable value="{!account.Contacts}" var="contact" border="1"> <apex:column > <apex:facet name="header">Name</apex:facet> {!contact.Name} </apex:column> <apex:column > <apex:facet name="header">Email</apex:facet> {!contact.Email} </apex:column> </apex:dataTable> <apex:form > <br /><br /> <apex:outputLabel value="Subject" for="Subject"/>:<br /> <apex:inputText value="{!s...

Wrapper Class Example with multiple delete options

This is the working example of Wrapper Class with lead as example with multiple delete option. <apex:page controller="wrapperClas">     <apex:form >         <apex:pageBlock id="pbLead">             <apex:pageBlockButtons >                 <apex:commandButton value="Delete" action="{!del}" rerender="pbLead"/>             </apex:pageBlockButtons>             <!-- In our table we are displaying the cContact records -->             <apex:pageBlockTable value="{!leadList}" var="l" id="table">                 <apex:column >                     <!-- This is our selected Boolean property in our wrapper class -->       ...

Lightning DataTable Working Example

Image
This is Lightning DataTable Working example with all functionalities of sorting,searching with the table, You need to install Lightning DataTable Dev from  https://appexchange.salesforce.com/listingDetail?listingId=a0N3A00000E9TBZUA3  and then you can use this feature in your Lightning Component. You can refer the guide in the app exchange to fully understand it.😏Or you can mail me on deepakagarwal483@gmail.com for any queries. Here goes the code: <aura:component controller="FetchData" implements="flexipage:availableForAllPageTypes" access="global">     <aura:attribute name="Accounts" type="Account[]"/>     <aura:attribute name="Coldata" type="list"/>     <aura:attribute name="Config" type="Map"/>     <aura:attribute name="SelectedRows" type="List"/>     <aura:attribute name="TypeValues"  type="List"/>    ...