Book Image

Salesforce Lightning Cookbook

By : Syed Chand Shah
Book Image

Salesforce Lightning Cookbook

By: Syed Chand Shah

Overview of this book

<p><span id="description" class="sugar_field">The new Lightning Experience combines three major components—Lightning Design System, Lightning App Builder, and Lightning Components—to enable anyone to quickly and easily create beautiful, modern enterprise apps. If you wish to meet the challenges that Lightning throws at you head-on, then look no further because this practical book will be your faithful companion and ensure that you make best use of the Lightning platform.</span></p> <p><span class="sugar_field"><span id="description" class="sugar_field"> The book starts by walking you through the three major Lightning Components and helps you enable and configure a Lightning solution. You will explore the art of working with standard components and build a basic layout for the application. Then, you will add more advanced components using the Lightning Framework. Finally, you will also build and migrate reports and dashboards to make your app look more professional. Towards the end of the book, you’ll make use of Design System to work with Salesforce data and lay out the entire page with the components that you’ve built, before integrating Visualforce in your application.</span> </span></p>
Table of Contents (11 chapters)

Preface

In this book, we cover basic app development and also explain how advanced development takes place. Most web and mobile apps today are single-page apps (SPAs). Because of this, Salesforce has also introduced Lightning Experience, which is a SPA or an OPA. We develop modern and interactive desktop apps and mobile apps with Lightning Framework. So we need to upgrade from Salesforce Classic, which is the old UI, to Lightning Experience, which is the modern UI. For the brevity of the book we are not diving deep into advanced concepts such as client-side controllers, server-side controllers, event debugging, lack of service, and more.

Who this book is for

This book is ideal for Salesforce developers, admins, sales consultants, and sales managers who are comfortable using the features of Lightning to build basic apps.

What this book covers

Chapter 1, Lightning Enablement, helps you with the switch from Salesforce Classic to Lightning Experience.

Chapter 2, Lightning Configuration, looks at point-and-click tools, drag-and-drop tools, and also looks into Lightning Experience page development.

Chapter 3, Lightning Components, explains the coding and concepts of Lightning Framework a little bit. We are also using custom components in the Lightning development. 

Chapter 4, Visualforce Pages, will help us understand how the Visualforce pages are used in the Lightning, how to get Lightning like Visualforce pages, as well as how to use Lightning components in Visualforce pages.

Chapter 5, Lightning Design Systems, explains what Salesforce Lightning Design Systems is, and covers some style classes to use on Visualforce pages. 

 

To get the most out of this book

This book is aimed at Salesforce developers, administrators, sales consultants, and sales managers  who are comfortable with using the features of Lightning to build basic apps. This book is also for users who want to learn about Salesforce reporting and dashboards using Lightning Experience. To get most out of the book, sign up for an developer account athttps://developer.Salesforce.com/.

Download the example code files

You can download the example code files for this book from your account atwww.PacktPub.com. If you purchased this book elsewhere, you can visitwww.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at http://www.packtpub.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the on-screen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows
  • Zipeg / iZip / UnRarX for Mac
  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub athttps://github.com/PacktPublishing/Salesforce-Lightning-CookbookIn case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available athttps://github.com/PacktPublishing/. Check them out!

Download the color images

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://www.packtpub.com/sites/default/files/downloads/SalesforceLightningCookbook_ColorImages.pdf.

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Let us create a page, we will comment out <apex:slds/>."

A block of code is set as follows:

<aura:component >
    <aura:attribute name="enterName" type="String" default=""
     description="" />
</aura:component>

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

<aura:component >
 <aura:attribute name="enterName" type="String" default=""   
     description="" />
</aura:component>

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "In the standard components, you have Report Chart."

Note

Warnings or important notes appear like this.

Note

Tips and tricks appear like this.

 

 

Sections

In this book, you will find several headings that appear frequently (Getting readyHow to do it..., How it works..., There's more..., and See also).

To give clear instructions on how to complete a recipe, use these sections as follows:

Getting ready

This section tells you what to expect in the recipe and describes how to set up any software or any preliminary settings required for the recipe.

How to do it…

This section contains the steps required to follow the recipe.

How it works…

This section usually consists of a detailed explanation of what happened in the previous section.

There's more…

This section consists of additional information about the recipe in order to make you moreknowledgeable about the recipe.

See also

This section provides helpful links to other useful information for the recipe.

Get in touch

Feedback from our readers is always welcome.

General feedback: Email[email protected]and mention the book title in the subject of your message. If you have questions about any aspect of this book, please email us at[email protected].

 

 

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.

Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at[email protected]with a link to the material.

If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visitauthors.packtpub.com.

Reviews

Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!

For more information about Packt, please visit packtpub.com.