Posts

Showing posts from May, 2017

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"/>    ...