Professional Documents
Culture Documents
Seminar Report Sem 6 PDF
Seminar Report Sem 6 PDF
Seminar Report
On
”Salesforce1 Lightning”
By
Department of MCA
Adgaon,Nashik-422003
Bhujbal Knowledge City
Department of MCA
Adgaon, Nashik-422003
CERTIFICATE
This is to certify that Miss.Mamta Kukreja
has successfully completed her Project work on
”Salesforce1 Lightning” in partial fulfillment of
term work of Third Year Master in Computer Application
under Savitribai Phule Pune University, for the academic year 2014-2015.
Every work is source which requires support from many people and areas. It gives
me proud privilege to complete the seminar on ”Salesforce1 Lightning” under valuable
guidance and encouragement of my guide Prof.Manjusha Khond.
I would also like to thank all the Staff Members of MCA Department for timely
help and inspiration for completion of the seminar.
At last I would like to thank all the unseen authors of various articles on the
Internet, helping me become aware of the research currently ongoing in this field and all
my colleagues for providing help and support in my work.
i
Abstract
Using Lightning, we can easily build responsive applications for any screen. Lightning
is the set of tools and technologies that has resulted in a considerable advancement to
the Salesforce1 Platform.
Lightning includes:
• Lightning App Builder - Lets you build apps visually using off-the-shelf components
provided by Salesforce as well as platform developers.
• Lightning Connect - An integration tool that helps your Force.com app to utilize
data from any external source that follows the OData specification.
• Lightning Schema Builder - A UI tool for displaying as well as creating objects and
fields, and establishing relationships among them.
ii
Using these lightning technologies, you can effortlessly customize and simply deploy
new apps to mobile devices consisting Salesforce1. The next generation of Salesforce1
Platform will offer developers the control to improve apps for real business results, faster.
iii
Contents
6 Conclusion 24
iv
7 Bibliography 25
v
List of Figures
vi
Chapter 1
Introduction to Salesforce1
Lightning
Salesforce has taken another big jump towards the Internet of Customers with Sales-
force1 Lightning, a UI framework for customers to effortlessly build and connect apps
faster than ever.
Link:http://qloudwerks.com/blog/2014/10/28/salesforce-launches-salesforce1-lightning-
the-fastest-way-to-build-mobile-apps
1
Lightning has been the next major release of the Salesforce1 platform and is the
biggest change since SFDC first introduced the ability to create custom objects.
With Lightning, SFDC has delivered a new mobile-optimised, modular user interface,
which delivers a consistent experience across all devices and enables rapid application
development through re-use. Salesforce itself has used Salesforce1 Lightning internally
to create the Salesforce1 mobile app. This application was then known as ”Aura”.
As the name Lightning suggests, the platform is all about speed. Lightning adds new
components to Salesforce1, including pre-built functionalities, a framework, and an app
builder that allows users to make apps, integrate data, automate processes and interre-
late all entities easily and at very high speed.
Benioff described Salesforce1 Lightning to be the fastest way to create mobile apps,
when introduced by company co-founders Parker Harris and Marc Benioff on Day 2 of
Dreamforce 2014. The platform, which consists of a group of pre-configured templates for
generally requested app types and above 400 objects from which to select, uses drag-and-
drop, drop-down menus and point-and-click methodology to create apps, be it simple or
complex. The apps then work on Salesforce1’s cloud for iOS, BlackBerry, Android, and
Windows mobile devices, so linking the apps to networks is done by the company’s own
developers already.
Lightning has the power of converting any idea into an app-based reality without
writing even a line of code! To put things into perspective, Lightning not only eliminates
the dependency on developers to deploy apps but also saves hours of development. Thus
customers are empowered as never before! Firm to its philosophy that app development
shouldnt be more difficult than running your business, whether it is connecting to your
2
customers via communities or process automation, Lightning enables you to do this your-
self, without any lines of code.
”LOB (line-of-business) users and Developers can now create purpose-built apps for
devices having screens of varied shape and size - desktops, smartphones, laptops, tablets,
wearables and phablets,” Harris, who runs the development group at the company, said
onstage during demonstrating the toolkit, ”Lightning’s UI (user interface) delivers a con-
sistent user experience across every Salesforce app and is optimized for any device.”
Link:http://suyati.com/webinar/salesforce1-lightning/
Rosenbaum says that the key feature is that instead of building apps from scratch,
developers can now build components. This means that all people in the entire ecosystem
can go faster as developers can now re-use components.
Salesforce1 Lightning provides the opportunity for Salesforce Administrators and De-
velopers to work together to optimize Salesforce and develop new apps on the Salesforce1
Platform. With these tools, a Developer can code reusable Lightning Components, and
a Salesforce Admin or Business Analyst can assemble those components into screens for
any device to meet their business needs themselves, without any dependency on the De-
3
velopers. The Salesforce Admin or Business Analyst can also automate complex business
processes and integrate with ERP systems - without writing code!
Its clear the future will be device-agnostic, meaning users will be accessing applica-
tions and services across a magnitude of different end points. This could be anything
from tablets and smartphones, to wearable devices like the Apple Watch, as well as other
paradigms that havent been introduced yet.
What all of this essentially means that in days to come, we are probably going to
see application problems being solved more through point-and-click instead of complex
lines of code. This approach would result in reusable components rather than standalone
applications, a philosophy that is lately on an upward trend. Lightning will surely be
the future of app development; ironically, involving little or no development.
4
Chapter 2
• Use point-and-click to create processes using visual layout with good efficiency.
• Make easy collaboration with different teams in your business and create processes.
• Instead of creating multiple workflow rules, create the whole process in one place.
Automated processes in the Process Builder include criteria that decide when to ex-
ecute action groups and immediate and scheduled actions to execute when those criteria
are met. Any modification that causes a record to match the criteria can automatically
5
trigger the action group.
The Process Builder can be used as a stronger alternative to workflow. Even though
the process builder doesn’t support outbound messages, but you can create one for your
custom functionality using Apex without much effort.
Link:https://developer.salesforce.com/trailhead/business_process_automation/process_builder
Use the buttons in the button bar(1) to activate or edit the properties of the open
process, save the process as a new one, or return to the process management page. The
canvas(2) represents main workspace for a process. On the canvas, we can define:
6
• 1 or >1 criteria nodes (4)
Each criteria node consists of conditions that are used to evaluate the record. Crite-
ria node evaluates based on the filter criteria -eg: whether the value for the Amount
field is >1000 - or based on formula.
• Update any related record - not just the record or its parent
• Create a record
• Send an email
• Post to Chatter
You can also call Apex from a process in case you want your process to perform more
actions than the ones mentioned above.
7
You can create powerful, attractive applications with drag-and-drop components for
everything from standard fields, reports and charts, to pre-built components from our
AppExchange marketplace, to your own custom components.
Link:https://medium.com/@salesforce/introducing-salesforce1-lightning-8697f6c389ad
The Lightning App Builder is aimed to be used by both technical and non-technical
users so as to build software applications through point-and-click controls that do not
need a thorough understanding of software development. The company claimed that
anyone using the App builder can quickly design apps with a customised user interface
across devices such as desktops, laptops, tablets, phablets, smartphones, wearables and
connected products.
8
Design apps to look the way you want, in the device you are designing for - a tablet,
a phone, a wearable device, desktop, you name it.
• Visually create apps with drag-and-drop components
Link:https://www.youtube.com/watch?v=OZWneVt_1Mk
Lightning Connect allows you to easily use data from external sources, alongside
with your Salesforce data. You can retrieve data from legacy systems such as Microsoft,
SAP and Oracle in real time, without copying the data in Salesforce. Also its all easily
configured by a simple yet powerful point and click interface.
9
• Connect and fetch data from external sources with point and click simplicity
Link:http://www.grazitti.com/blog/what-is-salesforce1-lightning/
If you are a developer, your long hours in managing data model are over! You can
now add and remove objects, fix up your data model instantly, without the need to write
any code.
10
2.5 Lightning Community Builder
You no longer require to depend on a large development cycle to connect to your cus-
tomers or partners; Lightning Community Builder allows you to create both private as
well as public communities that help you to connect to your customers and partners with
equal ease through integrated and connected content, tools and templates.
Link:http://www.salesforce.com/in/platform/services/lightning/
11
In addition to building new, custom applications with Lightning Components, you can
also use Lightning Component Extensions to replace and extend the default Salesforce1
Mobile App UI.
Link:https://developer.salesforce.com/lightning
12
Chapter 3
Link:https://www.salesforce.com/us/developer/docs/lightning/lightning.pdf
13
3.2 Why Use the Lightning Component Framework?
There are many advantages of using the Lightning Component framework to build apps.
• Event-Driven Architecture
It uses an event-driven architecture for enhanced decoupling between components.
Any component can subscribe to an application event, or to a component event
that they can view.
• Performance
It uses a stateless server and stateful client architecture that depends on JavaScript
on the client side to handle application data and UI component metadata. The
framework uses JSON to communicate data between the client and the server. To
maximize efficiency, the server only sends data that is required by the user. It
intelligently utilizes your browser, server, devices, and network so you can focus on
the business logic and communications of your apps.
• Faster Development
It empowers teams to work faster with out-of-the-box components that function
effortlessly with mobile and desktop devices. Building an app with components
allows for parallel design, improving overall development efficiency.
Components are encapsulated. This means that their public shape is visible to con-
sumers of the component while internals stay private. This strong division gives com-
ponent authors the freedom to change the internal implementation details and isolates
component consumers from those changes.
14
3.3 Components
Components are the reusable and self-contained sections of an app. They represent a
reusable part of the UI, and range in granularity from a single line of text to an entire app.
The framework includes a set of prebuilt components. You can assemble and configure
components to form new components in an app. Components are rendered to produce
HTML DOM elements within the browser.
The details of a component’s implementation are encapsulated. This allows the end
user of a component to focus on building their app, while the component creator can
innovate and make changes without breaking customers. You configure components by
setting the named attributes that they expose in their definition. Components interact
with their environment by listening to or publishing events.
3.4 Events
Event-driven programming is utilized in many frameworks and languages, such as JavaScript
and Java Swing. The thought is that you write handlers that respond to interface events
immediately as they occur.
A component registers that it may fire an event in its markup. Events are fired from
JavaScript controller actions that are typically triggered by a user interacting with the
user interface.
• Component events are either handled by the component itself or a component that
contains or instantiates the component.
15
ponents that offer a handler for the event are informed when the event is fired. are
notified when the event is fired.
Browser Notes
Google Chrome
Apple Safari 5+ For Mac OS X and iOS
Mozilla Firefox
Microsoft Internet Explorer Recommended to use Internet Explorer 9, 10, or 11.
Versions 7 and 8 may provide a degraded performance.
• Use the menu bar (1) to create or open these Lightning resources.
– Component
– Event
– Interface
– Application
• Use the sidebar (3) to open or create client-side resources that are part of a specific
component bundle.
16
– Style
– Controller
– Documentation
– Renderer
– Helper
Link:https://www.salesforce.com/us/developer/docs/lightning/lightning.pdf
17
3.7 Prerequisites to work with Lightning Compo-
nents
To work with standalone Lightning apps and components, make sure you have these
prerequisites.
Salesforce1 is built on Aura. The Salesforce team has created Aura exclusively for
improving the mobile experience. Aura was formerly built for Salesforce Touch. Since
then, the Aura framework has grown enormously. Now, portions of Force.com App
Builder, Chatter, Site.com Component Framework, and the Sales Cloud Opportunity
Splits are all using Aura. Note that this framework is being used for both Mobile and
Desktop devices.
The framework smartly utilizes your server, browser, network, and devices so you can
focus on the business logic and communications of your apps.
18
• It is open source: Aura lives on GitHub and can be forked/modified whenever
required. You can even provide functionality changes or bug fixes!
• Aura is not native to the Force.com platform: Unlike languages like Visualforce and
Apex, Aura does not require Salesforce. Even though it was built for Salesforce,
but it can be used by any developer. This will take Aura up to a much larger
set of developers. Along with it being open source, this framework has scope to
grow at a drastic rate. As Aura is built using object-oriented principles, it provides
the basic constructs of inheritance, encapsulation and polymorphism from typical
object-oriented programming and applies them to presentation layer development.
• Aura greatly utilizes events to interact with different components: With the ability
to quickly transition between mobile and desktop, Aura provides an amazingly
powerful framework to create applications that work for all mediums.
19
Chapter 4
Lightning provides a component framework and an innovative set of tools that permit de-
velopers and channel partners to create extremely dynamic and powerful web apps. Apart
from the capability to give a power-packed, highly customized UI, Lightning makes au-
tomating key business processes as well as integrating data a seamless procedure.
Lightning brings easy and quick development using components. Lightning Com-
ponents also offer tremendous customization opportunities to customers. It is also
feasible for developers to build their own custom code easily - using Apex on the
server, and side JavaScript on client side.
20
1. Lightning components are encapsulated. The users of a component view only
its public shape whereas the internals stay private. This provides developers
the freedom to alter the internal implementation details without altering users
of other elements in the components. Encapsulation also helps to widen and
improve the overall development efficiency.
2. Lightning Components have event-driven architecture that helps in better de-
coupling between components. ’Decoupling’ means different components re-
maining independent, or uninformed of each other, allowing each component
to achieve its task autonomous of other components. Also, the buffer sepa-
rates the access of each component to the memory, and this parallelism helps
to achieve high-performance.
• Drag-and-Drop Function
Lightning allows application development using drag-and-drop, without writing
any code. This revolutionizes the development space, making it possible for even
business managers and novices with no coding experience to roll-out highly powerful
apps.
• Responsive Design
Lightning apps are responsive and present a stable user experience. The Lightning
Component framework supports the latest browser technologies such as HTML5,
CSS3, and touch events. Lightning makes it very easy for developers to build
responsive apps that get the screen size details from the device and format them
accordingly. With the growing popularity of mobile devices such as wearables,
smartphones, phablets, tablets growing, and all these devices coming in almost
uncountable screen sizes, responsive web design has become a vital function, and
Lightning permits developers to do this in double quick time, without a lot of effort.
A recent study sponsored by Salesforce proves that the Lightning Platform delivers
52 percent faster application deployment, 50 percent faster design of new apps, all, at an
overall 42 percent savings in IT costs.
The strength of Lightning comes from its distinctive blend of powerful features with
ease. It breaks down technological barriers and makes it achievable for developers to
21
deploy highly powerful features and functionality in an easy way, regularly requiring just
some mouse clicks. The necessity for coding is decreased tremendously and even novices
can now roll out high quality apps. For businesses, Lightning provides the independence
to manage their business, without spending a lot on developing apps.
22
Chapter 5
Disadvantages of Salesforce1
Lightning
As with any new technology release, there are some important things to think when
deciding if it fits your particular requirements. So, here are a few current limitations of
Salesforce1 Lightning :
• Lightning is currently in beta status. While it’s fairly stable and usable, there may
be bugs that haven’t yet been found or fixed. Things may change that could break
your code unsuspectingly.
• You will need to enable Lightning in your orgs explicitly to be able to use it, as it
is not enabled by default, but this stops canvas apps from working.
23
Chapter 6
Conclusion
I believe Lightning is a game changer for the Salesforce1 platform. There is a huge oppor-
tunity for developers as they shift from creating standalone apps, to re-usable Lightning
Components.
This potential has always been seen in the Salesforce1 platform, where app develop-
ment is no longer a time consuming, costly process, but instead fast and efficient. For
the first time, this is achievable through a building block approach, that doesn’t sacrifice
quality, performance or security.
Overall I think Lightning will change the way apps are built and its exciting to see
what developers (including citizen developers) will do with the new capabilities!
24
Chapter 7
Bibliography
• https://developer.salesforce.com/lightning
• http://www.salesforce.com/in/platform/services/lightning/
• http://suyati.com/advantages-salesforce1-lightning/
• http://www.lifeintech.com/
• http://www.zdnet.com/article/salesforce1-re-energized-with-lightning-upgrade-for-
connected-apps/
• http://blog.stratagon.com/salesforce-1-lightning
• http://blog.sonomapartners.com/2014/10/news-from-dreamforce-14-salesforce-announces-
salesforce1-lightning.html
• http://www.jobsinsalesforce.com/salesforce1-gets-a-ui-lift-empowering-customers-to-
build-connected-apps-faster-than-ever/
25