Posts

Showing posts from September, 2017

How To Navigate From One Component To Other Component Using Dynamic Lightning Components

Image
Step 1: Create a component 1 Using this component we can give FirstName and LastName . If we click on  NavigateToC2 button it should navigate to Component 2 and display FullName. Here is the Component 1. <aura:component >     <aura:attribute name="Result" type="String"/>     <aura:registerEvent name="navigate" type="c:NavigateFromC1ToC2"/>     <div class="demo-only" style="height: 640px;">         <section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01" aria-modal="true" aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open">             <div class="slds-modal__container">                 <header class="slds-modal__header">                     <h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate">Modal Header</h2

Chargify : Sign Up

Image
Chargify - SignUp Step 1 : In-order to get chargify account please navigate to  https://app.chargify.com/signup   . Step 2: Enter Details . Step 3 : Click on " Create my account "  .  Step 4: Then you get page like below. For sign-In Navigate To  https://app.chargify.com/login.html

Attach Files To Records In Salesforce

Image
Create an Attachment: If your form contains a file upload a file upload field,you can attach the uploaded files to most salesforce objects by creating a dependent Attachment object. Create the parent object for the Attachment object. Click the Choose File   button, and select the Attachment object from the list. You will need to map the ID of the parent object to the Attachment object's Parent ID. To do this,map the Parent ID in the field mapping section.Note that is a required field. The othe required fields for the Attachment object , "File Name" and "Body," will also appear in the Field Mapping section. You will nedd to map both of these fields to the file upload field in your form. Here i have created one record of Account object and attached file to that record. Code: Apex Class: public with sharing class AttachmentUploadController  {     public String parentId {get;set;}     public Attachment attach {get;set;}     public AttachmentUpl

Lightning Component For Lightning Design System Tabs

Image
Tabs - Lightning Design System A tab keeps related content in a single container that is shown and hidden through navigation. For more information please refer the following link. Lightning Design System - Tabs CODE : Component : <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction">     <aura:attribute name="SalesCloudURL" type="String" default="http://resources.docs.salesforce.com/208/14/en-us/sfdc/pdf/smb_sales_impl_guide.pdf"/>         <aura:attribute name="ServiceCloudURL" type="String" default="https://resources.docs.salesforce.com/200/latest/en-us/sfdc/pdf/workbook_service_cloud.pdf"/>     <aura:attribute name="MarketCloudURL" type="String" default="https://developers.gigya.com/display/GD/Salesforce+Marketing+C