2. cloud.analogy info@cloudanalogy.com +1(415)830-3899
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.
cloud.analogy info@cloudanalogy.com +1(415)830-3899
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.
cloud.analogy info@cloudanalogy.com +1(415)830-3899
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
cloud.analogy info@cloudanalogy.com +1(415)830-3899
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
cloud.analogy info@cloudanalogy.com +1(415)830-3899
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.
cloud.analogy info@cloudanalogy.com +1(415)830-3899
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.
cloud.analogy info@cloudanalogy.com +1(415)830-3899
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.
cloud.analogy info@cloudanalogy.com +1(415)830-3899