SlideShare a Scribd company logo
1 of 11
Lightning StartUp
PRESENTED BY
MOUNIKA DV
OverView
 Visualforce and Lightning Experience
 Steps to use LightningDesignSystem(SLDS) with VF page
 Lightning Experience Development
 Steps to build Lightning Component
 Lightning Application Demo
 Handy Lightning Syntax
 Get - Set Values
 Considerations and Best Practices
 References
Visualforce and Lightning Experience
 Run a VF Page from the App Launcher
 Visualforce page tab
 Add a Visualforce Page to the Navigation Menu
 Display a Visualforce Page within a Standard Page Layout
 Add a Visualforce Page as a Component in Lightning App Builder
 Launch a Visualforce Page as a Quick Action
 Display a Visualforce Page by Overriding Standard Buttons or Links
 Display a Visualforce Page Using Custom Buttons or Links
Steps to use LightningDesignSystem(SLDS) with VF page
 Download the latest version of Design system from getslds.com
 Add downloaded zip file as static resource.
 Create a vf page and add css file(salesforce-lightning-design-system.css).
few things to note when working with the Lightning Design System in Visualforce.
 Scoped within <div class="slds">
 <apex:pageblock> and <apex:inputField> are not supported.
Lightning Experience Development
Setting Up Your Environment
Step 1: Create a Namespace
Step 2: Enable Lightning Components
Step 3: Upload SLDS as a Static Resource
Steps to build Lightning Component
 Create an Apex Controller that exposes data and
logic to the client application.
 @AuraEnabled annotation should be added to the
methods exposed to Lightning Component.
 Create Lightning component(DemoComponent) from
Developer Console.
 Aura Attribute DatTypes -
https://developer.salesforce.com/docs/atlas.en-
us.lightning.meta/lightning/ref_attr_types_basic.htm
 Add html tags in component(DemoComponent.cmp)
which gives UI
 Add logic behind the UI elements in
js(DemoComponentController.js)
 Add all styles in Styles tab(DemoComponent.css)
 Add component into Lightning Application and click
preview to open your App.
Lightning Application Demo
Basic Features:
 Fetch user entered data.
 Modify Data according to input and display on App.
 Calling Controller methods and query Data.
 Perform DML
Handy Lightning Syntax
Attribute
<aura:attribute name="number1" type="Integer" />
Custom Event Handling
<aura:handler name="change" value="{!v.number1}" action="{!c.MultiplyNumbers}" />
Controller Methods
var action = component.get("c.controllerMethod");
action.setParams({
“param1" : param1ValueToSet,
});
action.setCallback(this, function(a) {
//Logic to execute after controller method execution.
});
$A.enqueueAction(action);
Get - Set Values
Get Attribute value:
◦ component.get(‘v.number1’);
Get value by ID:
◦ component.find(‘v. Number1AuraId’).get(‘v.body’)
Set attribute value:
◦ component.set('v.number1‘,100);
Set value by ID:
◦ component.find(‘Number1AuraId’).set(‘v.body’,100);
Considerations and Best Practices
 Delegate your business logic to helper methods.
 Global variables cannot be created from controller, So alternatives are attribute or helper
variable.
 Helper functions may be called from any other javascript in the component bundle.
 Do not trigger DML operations in init() which will be Cross-site request forgery.
 Do not fire an event in renderer, firing an event in a renderer can cause an infinite
rendering loop.
 Avoid href assignment via document.location.href , instead use ‘/’ and encodeURI.
 Always specify with/without sharing in apex class.
 Always perform additional CRUD and FLS checks.
References
http://ccoenraets.github.io/salesforce-lightning-tutorial/index.html
http://peterknolle.com/lightning-experience-developer-trailhead/
http://salesforce.vidyard.com/watch/1QKjVpyGes-4WVtsZ_SLdA
http://documentation.auraframework.org/auradocs
https://www.lightningdesignsystem.com/

More Related Content

What's hot

Mastering the Lightning Framework - Part 1
Mastering the Lightning Framework - Part 1Mastering the Lightning Framework - Part 1
Mastering the Lightning Framework - Part 1Salesforce Developers
 
Salesforce Lightning Experience Overview by Brainiate
Salesforce Lightning Experience Overview by BrainiateSalesforce Lightning Experience Overview by Brainiate
Salesforce Lightning Experience Overview by Brainiatebrainiate
 
Introduction to lightning out df16
Introduction to lightning out   df16Introduction to lightning out   df16
Introduction to lightning out df16Mohith Shrivastava
 
Plugin vs Workflow in Microsoft Dynamics CRM
Plugin vs Workflow in Microsoft Dynamics CRMPlugin vs Workflow in Microsoft Dynamics CRM
Plugin vs Workflow in Microsoft Dynamics CRMAli Sharifi
 
Let's Build an Editor Macro with Forge UI
Let's Build an Editor Macro with Forge UILet's Build an Editor Macro with Forge UI
Let's Build an Editor Macro with Forge UIAtlassian
 
Lightning Components Explained
Lightning Components ExplainedLightning Components Explained
Lightning Components ExplainedAtul Gupta(8X)
 
Introduction to Lightning for Salesforce Admins
Introduction to Lightning for Salesforce AdminsIntroduction to Lightning for Salesforce Admins
Introduction to Lightning for Salesforce AdminsMatthew Morris
 
Salesforce Lightning Design System
Salesforce Lightning Design SystemSalesforce Lightning Design System
Salesforce Lightning Design SystemDurgesh Dhoot
 
Build Apps Visually with Lightning App Builder
Build Apps Visually with Lightning App BuilderBuild Apps Visually with Lightning App Builder
Build Apps Visually with Lightning App BuilderSalesforce Developers
 
Classic vs. lightning
Classic vs. lightningClassic vs. lightning
Classic vs. lightningGaurav Kumar
 
Salesforce Apex Hours: What means Winter 18 for Developers
Salesforce Apex Hours: What means Winter 18 for Developers Salesforce Apex Hours: What means Winter 18 for Developers
Salesforce Apex Hours: What means Winter 18 for Developers Amit Chaudhary
 
Introducing: The Lightning Experience
Introducing: The Lightning ExperienceIntroducing: The Lightning Experience
Introducing: The Lightning ExperienceDreamforce
 
Updates on the Data Center Apps Program
Updates on the Data Center Apps ProgramUpdates on the Data Center Apps Program
Updates on the Data Center Apps ProgramAtlassian
 
Salesforce Lightning component framework from 0 to app
Salesforce Lightning component framework from 0 to appSalesforce Lightning component framework from 0 to app
Salesforce Lightning component framework from 0 to appRoy Gilad
 

What's hot (20)

Dallas meetup
Dallas meetupDallas meetup
Dallas meetup
 
Mastering the Lightning Framework - Part 1
Mastering the Lightning Framework - Part 1Mastering the Lightning Framework - Part 1
Mastering the Lightning Framework - Part 1
 
Salesforce Lightning Experience Overview by Brainiate
Salesforce Lightning Experience Overview by BrainiateSalesforce Lightning Experience Overview by Brainiate
Salesforce Lightning Experience Overview by Brainiate
 
Introduction to lightning out df16
Introduction to lightning out   df16Introduction to lightning out   df16
Introduction to lightning out df16
 
Lightning overview
Lightning overviewLightning overview
Lightning overview
 
Plugin vs Workflow in Microsoft Dynamics CRM
Plugin vs Workflow in Microsoft Dynamics CRMPlugin vs Workflow in Microsoft Dynamics CRM
Plugin vs Workflow in Microsoft Dynamics CRM
 
Let's Build an Editor Macro with Forge UI
Let's Build an Editor Macro with Forge UILet's Build an Editor Macro with Forge UI
Let's Build an Editor Macro with Forge UI
 
Lightning Components Explained
Lightning Components ExplainedLightning Components Explained
Lightning Components Explained
 
Introduction to Lightning for Salesforce Admins
Introduction to Lightning for Salesforce AdminsIntroduction to Lightning for Salesforce Admins
Introduction to Lightning for Salesforce Admins
 
Salesforce Lightning Design System
Salesforce Lightning Design SystemSalesforce Lightning Design System
Salesforce Lightning Design System
 
Salesforce Lightning workshop
Salesforce Lightning workshopSalesforce Lightning workshop
Salesforce Lightning workshop
 
Mule ESB integration with Stripe
Mule ESB integration with StripeMule ESB integration with Stripe
Mule ESB integration with Stripe
 
Build Apps Visually with Lightning App Builder
Build Apps Visually with Lightning App BuilderBuild Apps Visually with Lightning App Builder
Build Apps Visually with Lightning App Builder
 
Force.com Friday - Intro to Visualforce
Force.com Friday - Intro to VisualforceForce.com Friday - Intro to Visualforce
Force.com Friday - Intro to Visualforce
 
Classic vs. lightning
Classic vs. lightningClassic vs. lightning
Classic vs. lightning
 
Salesforce Apex Hours: What means Winter 18 for Developers
Salesforce Apex Hours: What means Winter 18 for Developers Salesforce Apex Hours: What means Winter 18 for Developers
Salesforce Apex Hours: What means Winter 18 for Developers
 
Salesforce lightning design system
Salesforce lightning design systemSalesforce lightning design system
Salesforce lightning design system
 
Introducing: The Lightning Experience
Introducing: The Lightning ExperienceIntroducing: The Lightning Experience
Introducing: The Lightning Experience
 
Updates on the Data Center Apps Program
Updates on the Data Center Apps ProgramUpdates on the Data Center Apps Program
Updates on the Data Center Apps Program
 
Salesforce Lightning component framework from 0 to app
Salesforce Lightning component framework from 0 to appSalesforce Lightning component framework from 0 to app
Salesforce Lightning component framework from 0 to app
 

Viewers also liked

Ζαχαρούλα_Βελούδου_1053444_Φωτεινή_Βουτσίνου_1053404_Χαρά_Κανίδου_1056368
Ζαχαρούλα_Βελούδου_1053444_Φωτεινή_Βουτσίνου_1053404_Χαρά_Κανίδου_1056368Ζαχαρούλα_Βελούδου_1053444_Φωτεινή_Βουτσίνου_1053404_Χαρά_Κανίδου_1056368
Ζαχαρούλα_Βελούδου_1053444_Φωτεινή_Βουτσίνου_1053404_Χαρά_Κανίδου_1056368up1053444
 
Literature Review of research papers on Stock Market Portfolio
Literature Review of research papers on Stock Market PortfolioLiterature Review of research papers on Stock Market Portfolio
Literature Review of research papers on Stock Market PortfolioAshu Prakash
 

Viewers also liked (8)

My task presentation general
My task presentation generalMy task presentation general
My task presentation general
 
Homelabels1
Homelabels1Homelabels1
Homelabels1
 
Tarea grupocienciasdelanaturaleza final
Tarea grupocienciasdelanaturaleza finalTarea grupocienciasdelanaturaleza final
Tarea grupocienciasdelanaturaleza final
 
Ζαχαρούλα_Βελούδου_1053444_Φωτεινή_Βουτσίνου_1053404_Χαρά_Κανίδου_1056368
Ζαχαρούλα_Βελούδου_1053444_Φωτεινή_Βουτσίνου_1053404_Χαρά_Κανίδου_1056368Ζαχαρούλα_Βελούδου_1053444_Φωτεινή_Βουτσίνου_1053404_Χαρά_Κανίδου_1056368
Ζαχαρούλα_Βελούδου_1053444_Φωτεινή_Βουτσίνου_1053404_Χαρά_Κανίδου_1056368
 
Redes (1)
Redes (1)Redes (1)
Redes (1)
 
CV
CVCV
CV
 
IEEE-2016-2017-TITLES
IEEE-2016-2017-TITLESIEEE-2016-2017-TITLES
IEEE-2016-2017-TITLES
 
Literature Review of research papers on Stock Market Portfolio
Literature Review of research papers on Stock Market PortfolioLiterature Review of research papers on Stock Market Portfolio
Literature Review of research papers on Stock Market Portfolio
 

Similar to Lightning salesforce

Exploring Angular 2 - Episode 1
Exploring Angular 2 - Episode 1Exploring Angular 2 - Episode 1
Exploring Angular 2 - Episode 1Ahmed Moawad
 
Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event HandlingWebStackAcademy
 
M365 global developer bootcamp 2019 PA
M365 global developer bootcamp 2019  PAM365 global developer bootcamp 2019  PA
M365 global developer bootcamp 2019 PAThomas Daly
 
Better User Experience with .NET
Better User Experience with .NETBetter User Experience with .NET
Better User Experience with .NETPeter Gfader
 
Angular components
Angular componentsAngular components
Angular componentsSultan Ahmed
 
Migrate To Lightning Web Components from Aura framework to increase performance
Migrate To Lightning Web Components from Aura framework to increase performance Migrate To Lightning Web Components from Aura framework to increase performance
Migrate To Lightning Web Components from Aura framework to increase performance Bohdan Dovhań
 
Overview Of Kaizala Extensibility and Programmability
Overview Of Kaizala Extensibility and ProgrammabilityOverview Of Kaizala Extensibility and Programmability
Overview Of Kaizala Extensibility and ProgrammabilityVijai Anand Ramalingam
 
Hnd201 Building Ibm Lotus Domino Applications With Ajax Plugins
Hnd201 Building Ibm Lotus Domino Applications With Ajax PluginsHnd201 Building Ibm Lotus Domino Applications With Ajax Plugins
Hnd201 Building Ibm Lotus Domino Applications With Ajax Pluginsdominion
 
MVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCMVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCAnton Krasnoshchok
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17Vivek chan
 
Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)Oro Inc.
 
Building a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web ServicesBuilding a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web ServicesDavid Giard
 
MVC Design Pattern in JavaScript by ADMEC Multimedia Institute
MVC Design Pattern in JavaScript by ADMEC Multimedia InstituteMVC Design Pattern in JavaScript by ADMEC Multimedia Institute
MVC Design Pattern in JavaScript by ADMEC Multimedia InstituteRavi Bhadauria
 
Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]Sentinel Solutions Ltd
 
Android development 1july
Android development 1julyAndroid development 1july
Android development 1julyEdureka!
 
Salesforce World Tour 2016 : Lightning Out : Components on any Platform
Salesforce World Tour 2016 : Lightning Out : Components on any PlatformSalesforce World Tour 2016 : Lightning Out : Components on any Platform
Salesforce World Tour 2016 : Lightning Out : Components on any Platformandyinthecloud
 
Salesforce.com API Series: Service Cloud Console Deep Dive
Salesforce.com API Series: Service Cloud Console Deep DiveSalesforce.com API Series: Service Cloud Console Deep Dive
Salesforce.com API Series: Service Cloud Console Deep DiveSalesforce Developers
 

Similar to Lightning salesforce (20)

Test
TestTest
Test
 
Exploring Angular 2 - Episode 1
Exploring Angular 2 - Episode 1Exploring Angular 2 - Episode 1
Exploring Angular 2 - Episode 1
 
Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event Handling
 
M365 global developer bootcamp 2019 PA
M365 global developer bootcamp 2019  PAM365 global developer bootcamp 2019  PA
M365 global developer bootcamp 2019 PA
 
Better User Experience with .NET
Better User Experience with .NETBetter User Experience with .NET
Better User Experience with .NET
 
Lightning Components Workshop v2
Lightning Components Workshop v2Lightning Components Workshop v2
Lightning Components Workshop v2
 
Angular components
Angular componentsAngular components
Angular components
 
Migrate To Lightning Web Components from Aura framework to increase performance
Migrate To Lightning Web Components from Aura framework to increase performance Migrate To Lightning Web Components from Aura framework to increase performance
Migrate To Lightning Web Components from Aura framework to increase performance
 
Overview Of Kaizala Extensibility and Programmability
Overview Of Kaizala Extensibility and ProgrammabilityOverview Of Kaizala Extensibility and Programmability
Overview Of Kaizala Extensibility and Programmability
 
Google app engine by example
Google app engine by exampleGoogle app engine by example
Google app engine by example
 
Hnd201 Building Ibm Lotus Domino Applications With Ajax Plugins
Hnd201 Building Ibm Lotus Domino Applications With Ajax PluginsHnd201 Building Ibm Lotus Domino Applications With Ajax Plugins
Hnd201 Building Ibm Lotus Domino Applications With Ajax Plugins
 
MVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCMVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVC
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
 
Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)
 
Building a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web ServicesBuilding a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web Services
 
MVC Design Pattern in JavaScript by ADMEC Multimedia Institute
MVC Design Pattern in JavaScript by ADMEC Multimedia InstituteMVC Design Pattern in JavaScript by ADMEC Multimedia Institute
MVC Design Pattern in JavaScript by ADMEC Multimedia Institute
 
Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]
 
Android development 1july
Android development 1julyAndroid development 1july
Android development 1july
 
Salesforce World Tour 2016 : Lightning Out : Components on any Platform
Salesforce World Tour 2016 : Lightning Out : Components on any PlatformSalesforce World Tour 2016 : Lightning Out : Components on any Platform
Salesforce World Tour 2016 : Lightning Out : Components on any Platform
 
Salesforce.com API Series: Service Cloud Console Deep Dive
Salesforce.com API Series: Service Cloud Console Deep DiveSalesforce.com API Series: Service Cloud Console Deep Dive
Salesforce.com API Series: Service Cloud Console Deep Dive
 

Recently uploaded

Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 

Recently uploaded (20)

Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 

Lightning salesforce

  • 2. OverView  Visualforce and Lightning Experience  Steps to use LightningDesignSystem(SLDS) with VF page  Lightning Experience Development  Steps to build Lightning Component  Lightning Application Demo  Handy Lightning Syntax  Get - Set Values  Considerations and Best Practices  References
  • 3. Visualforce and Lightning Experience  Run a VF Page from the App Launcher  Visualforce page tab  Add a Visualforce Page to the Navigation Menu  Display a Visualforce Page within a Standard Page Layout  Add a Visualforce Page as a Component in Lightning App Builder  Launch a Visualforce Page as a Quick Action  Display a Visualforce Page by Overriding Standard Buttons or Links  Display a Visualforce Page Using Custom Buttons or Links
  • 4. Steps to use LightningDesignSystem(SLDS) with VF page  Download the latest version of Design system from getslds.com  Add downloaded zip file as static resource.  Create a vf page and add css file(salesforce-lightning-design-system.css). few things to note when working with the Lightning Design System in Visualforce.  Scoped within <div class="slds">  <apex:pageblock> and <apex:inputField> are not supported.
  • 5. Lightning Experience Development Setting Up Your Environment Step 1: Create a Namespace Step 2: Enable Lightning Components Step 3: Upload SLDS as a Static Resource
  • 6. Steps to build Lightning Component  Create an Apex Controller that exposes data and logic to the client application.  @AuraEnabled annotation should be added to the methods exposed to Lightning Component.  Create Lightning component(DemoComponent) from Developer Console.  Aura Attribute DatTypes - https://developer.salesforce.com/docs/atlas.en- us.lightning.meta/lightning/ref_attr_types_basic.htm  Add html tags in component(DemoComponent.cmp) which gives UI  Add logic behind the UI elements in js(DemoComponentController.js)  Add all styles in Styles tab(DemoComponent.css)  Add component into Lightning Application and click preview to open your App.
  • 7. Lightning Application Demo Basic Features:  Fetch user entered data.  Modify Data according to input and display on App.  Calling Controller methods and query Data.  Perform DML
  • 8. Handy Lightning Syntax Attribute <aura:attribute name="number1" type="Integer" /> Custom Event Handling <aura:handler name="change" value="{!v.number1}" action="{!c.MultiplyNumbers}" /> Controller Methods var action = component.get("c.controllerMethod"); action.setParams({ “param1" : param1ValueToSet, }); action.setCallback(this, function(a) { //Logic to execute after controller method execution. }); $A.enqueueAction(action);
  • 9. Get - Set Values Get Attribute value: ◦ component.get(‘v.number1’); Get value by ID: ◦ component.find(‘v. Number1AuraId’).get(‘v.body’) Set attribute value: ◦ component.set('v.number1‘,100); Set value by ID: ◦ component.find(‘Number1AuraId’).set(‘v.body’,100);
  • 10. Considerations and Best Practices  Delegate your business logic to helper methods.  Global variables cannot be created from controller, So alternatives are attribute or helper variable.  Helper functions may be called from any other javascript in the component bundle.  Do not trigger DML operations in init() which will be Cross-site request forgery.  Do not fire an event in renderer, firing an event in a renderer can cause an infinite rendering loop.  Avoid href assignment via document.location.href , instead use ‘/’ and encodeURI.  Always specify with/without sharing in apex class.  Always perform additional CRUD and FLS checks.