Posts

Showing posts from July, 2017

Difference Between Clint Side Controller And Server Side Controller Lightning Components

DIFFERENCE BETWEEN CLINT SIDE CONTROLLER AND SERVER SIDE CONTROLLER LIGHTNING COMPONENTS Server Side Components : JS Controller : doInit: function(component, event, helper) {        var page = component.get("v.page") || 1;         var recordToDisply = component.find("recordSize").get("v.value");         helper.getAccounts(component, page, recordToDisply, component.get('v.selectedTabsoft'), component.get("v.isAsc"));       },       previousPage: function(component, event, helper) {         var recordToDisply = component.find("recordSize").get("v.value");         component.set("v.page", component.get("v.page") - 1);        helper.getAccounts(component, component.get("v.page"), recordToDisply,component.get('v.selectedTabsoft'), component.get("v.isAsc"));       },       gotoFirstPage : function(component, event, helper) {        component

Pagination Of Account Using Server Side Sorting On Lightning Component

Image
PAGINATION OF ACCOUNT USING SERVER SIDE SORTING ON LIGHTNING COMPONENT Component: <aura:component controller="AccountServersidesorting" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes"                    access="global">       scripts="/resource/bootstrap/js/jquery.js,/resource/bootstrap/js/bootstrap.min.js"/>  -->     <aura:attribute name="arrowDirection" type="string" default="arrowup" description="Use for change arrow sign direction on header based on click"/>       <aura:attribute name="isAsc" type="boolean" default="true" description="boolean flag for pass sorting condition to apex class"/>        <aura:attribute name="selectedTabsoft" type="string" default="Name" description=&quo

Pagination Of Contacts With Clint Side Controller Sorting Functionality On Lightning Component

Image
PAGINATION OF CONTACTS WITH CLINT SIDE SORTING FUNCTIONALITY ON LIGHTNING COMPONENT What is clint side sorting :In clint side sorting we will implement sorting functionality in clint side JS controller without using server side controller(Apex Class). i.e we use server side controller only to get the records from the Object .  The remaining functionality i.e pagination , custom buttons(First,Previous,Next,Last) and sorting implement at clint side. PROS : 1. In sales force one of the governer limits is total number of SOQL queries are 100. Using server side pagination each time on button click(First ,Previous,Next ,Last ) we call Soql query then we will get the error if we exceed the limit.Using clint side pagination each time no need call soql query. CONS :   1. Using clint side sorting we can not sot relational fields like Account.Name field in contacts. 2.If the number of records are increased , loading of records on custom button become slow.  Here Is

Custom Communities Forgot Password Page On Visualforce

Image
CUSTOM COMMUNITIES FORGOT PASSWORD PAGE ON VISUALFORCE Step 1 : Create a Visualforce Page <apex:page showHeader="false" sidebar="false" title="2020 Password Reset" controller="ForgotpasswordApexController"> <html> <style type="text/css"> .UserName123{ margin-bottom:10px; padding: 10px; width:90%; background-color:white; border: 1px solid #CCC; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .sfdc_button { width: 100%; margin-top: 15px; margin-bottom: 5px !important; color: #fff !important; background-color: #0070d2 !important; border-color: #357ebd !important; display: inline-block; text-align: center; vertical-align: middle;

Pagination Of List Of Accounts In Lightning Component

Image
PAGINATION  OF ACCOUNTS TABLE IN LIGHTNING COMPONENT        Here we can display list accounts,Edit accounts, create new account and we can view an account. COMPONENT <aura:component controller="samplePagerCtrl" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction">     <aura:attribute name="disAccRecTypeId" type="String"/>     <aura:attribute name="profileName" type="String"/>     <aura:handler name="init" value="{!this}" action="{!c.doInit}" />     <aura:attribute name="isAsc" type="boolean" default="true" description="boolean flag for pass sorting condition to apex class"/>      <aura:attribute name="selectedTabsoft" type="string" default="Name&qu