Component Tools and Services for Lightning Developer - PowerPoint PPT Presentation

About This Presentation
Title:

Component Tools and Services for Lightning Developer

Description:

In this PPt explain about tools and services for lightning developer – PowerPoint PPT presentation

Number of Views:4
Slides: 11
Provided by: cloudanalogy
Category:

less

Transcript and Presenter's Notes

Title: Component Tools and Services for Lightning Developer


1
(No Transcript)
2
  • This is a roadmap on various components, tools
    and services for Lightning developers.These are
  • Visualforce
  • Using Lightning Components with Visualforce pages
  • Lightning Data Services

3
Visualforce and the Issues faced by Developers ?
  • Visualforce is very well adopted by the
    developers. Visualforce is a server-centric
    technology in comparison to Lightning experience
    which is basically client-centric. So, it was
    needed that Visualforce must be evolved to a
    certain extent, for the developers to utilize its
    full potential.
  • Issue 1
  • The Markup of VF was not matching that of the
    design, so SLDS came into picture
  • Issue 2
  • The developers need to know where to start. We
    have the Visualforce Usage API and the Analyzer
    to help us in this type of issue.

4
  • Visualforce Usage API
  • It acts as any other API and when used against
    the Salesforce org returns the number of page
    views of your Visualforce page for a duration of
    say last 30 days. This was for resolving the
    issue on migrating to Lightning experience.
  • Visualforce Analyzer
  • there is a parameter called Lightning Readiness
    Check, accessible from the setup. When we click,
    this runs a report by the running the metadata
    against the org.

5
How to use Visualforce Pages with Lightning
Components ?
  • The Visualforce standard component can be used
    through the App Builder and a Visualforce page is
    added to your page. The important factors are
  • Different Origins
  • Different DOMS
  • Share the Data between the Visualforce page and
    the Lightning component

6
Share the Data between the Visualforce page and
the Lightning component
  • The user need to use the postMessage() method on
    the Window object. This allows to share the data
    between two window objects, even though these are
    hosted in different domains. However, there are
    two ways the data need to be shared - sending and
    receiving the message to/by the different window
    objects
  • Sending messages to different Window Objects
  • Receiving Messages by different Window Objects

7
Lightning Data Services
  • Lightning Data Services(LDS) is used to load,
    create, edit or delete a record in the component
    - without any need for any Apex code. It helps to
    streamline the process of obtaining the data.

8
Advantages of Lightning Data Services
  • The advantages are
  • There is no need to write SOQL code or Apex Code.
  • Shared cache is used for standard and custom
    components.
  • All components are auto notified.
  • Supports offline in Salesforce1.
  • It offers the most efficient way to handle CRUD
    operations.
  • It has inbuilt field-level and record-level
    security.
  • It improves performance and user interface
    consistencies.

9
Disadvantages of Lightning Data Services
  • he disadvantages are
  • Bulk record operations are not supported by it -
    similar to the StandardSetController
    functionality in Visualforce.
  • It is unable to refresh a record, if that is
    updated by using a Data loader or another user.
    So, it is supportive of client side caching only
    and not server side caching.

10
THANK YOU
Write a Comment
User Comments (0)
About PowerShow.com