Visualforce & Lightning Experience  - Know Which Features to Avoid in Lightning Experience
22 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the main reason why some Visualforce components should be avoided on pages used in Lightning Experience?

  • Because they are no longer supported by Salesforce
  • To ensure compatibility with Salesforce Classic
  • To maintain the standard Lightning Experience user interface (correct)
  • To improve page loading speed
  • What happens to the Lightning Experience header and sidebar when a Visualforce page is displayed in Lightning Experience?

  • They are always suppressed
  • They are always displayed (correct)
  • They are only displayed for administrators
  • They are customizable by the developer
  • What is the purpose of the showHeader and sidebar attributes of in Lightning Experience?

  • To suppress the header and sidebar of a Visualforce page
  • These attributes have no effect in Lightning Experience (correct)
  • To customize the header and sidebar of a Visualforce page
  • To display the Salesforce Classic header and sidebar
  • Why might a developer need to run an app in Salesforce Classic instead of Lightning Experience?

    <p>To provide a completely custom interface for the app</p> Signup and view all the answers

    What is true about the standard Salesforce Classic header and sidebar in Lightning Experience?

    <p>They are always suppressed</p> Signup and view all the answers

    What is the expected outcome of using the showHeader and sidebar attributes of on a Visualforce page in Lightning Experience?

    <p>The attributes will have no effect</p> Signup and view all the answers

    What is the main goal of Salesforce in regards to the limitations of Visualforce components in Lightning Experience?

    <p>To shrink the list of limitations over time</p> Signup and view all the answers

    What kind of apps are those that display in Lightning Experience?

    <p>Lightning Experience apps</p> Signup and view all the answers

    What is the default value of the standardStylesheets attribute in Lightning Experience?

    <p>true</p> Signup and view all the answers

    What happens to related lists that are not supported in Lightning Experience?

    <p>They are blocklisted, which means they are explicitly prevented from being used</p> Signup and view all the answers

    Why is it recommended to avoid using the iframe tag on Visualforce pages in Lightning Experience?

    <p>It increases the complexity of the environment</p> Signup and view all the answers

    What happens if a page's JavaScript code sets the window.location variable directly in Lightning Experience?

    <p>It will not work and needs to be modified</p> Signup and view all the answers

    What is the purpose of the sforce.one JavaScript utility object?

    <p>To provide a way to tell if a page is running in a mobile or desktop context</p> Signup and view all the answers

    What happens to overrides of the object list action in Lightning Experience?

    <p>They are not accessible in the user interface</p> Signup and view all the answers

    What is the result of wrapping a Visualforce page in an iframe in Lightning Experience?

    <p>It adds an additional level to the iframe stack</p> Signup and view all the answers

    What should you do if you have overridden the object list action for an object in Salesforce Classic?

    <p>Modify the override to work in Lightning Experience</p> Signup and view all the answers

    What is the effect of overriding the object tab action in Lightning Experience?

    <p>It overrides the object home page</p> Signup and view all the answers

    What is a significant implication of using Visualforce pages in Lightning Experience?

    <p>Visualforce pages are wrapped in their own iframe.</p> Signup and view all the answers

    Why is debugging nested iframes considered difficult in Lightning Experience?

    <p>Nested iframes complicate the DOM and JavaScript interaction.</p> Signup and view all the answers

    What is the recommended approach regarding the use of the iframe tag on Visualforce pages in Lightning Experience?

    <p>It is advisable to avoid using it.</p> Signup and view all the answers

    How does the presence of additional iframes affect the environment in Lightning Experience?

    <p>It increases the complexity of the environment.</p> Signup and view all the answers

    What should a developer understand in order to manage complexity when using iframes in Lightning Experience?

    <p>Understanding iframes and their effects on the DOM and JavaScript is crucial.</p> Signup and view all the answers

    Study Notes

    Features to Avoid in Lightning Experience

    • There are limited Visualforce components that should be avoided on pages used in Lightning Experience.
    • Some Visualforce features behave differently when used in Lightning Experience.
    • There are certain places in Lightning Experience where Visualforce pages or apps can't be used or might not function as expected.

    Lightning Experience Header and Navigation Menu

    • Visualforce pages always display with the standard Lightning Experience user interface.
    • The Lightning Experience header and sidebar can't be suppressed or altered.
    • The showHeader and sidebar attributes of <apex:page> have no effect on Visualforce pages in Lightning Experience.

    Salesforce Classic Header and Sidebar

    • The standard Salesforce Classic header and sidebar are always suppressed for pages displayed in Lightning Experience.
    • The showHeader and sidebar attributes of <apex:page> have no effect on Visualforce pages in Lightning Experience.
    • Pages behave as though the showHeader and sidebar attributes of <apex:page> are both set to false.
    • Certain related lists are not supported in Lightning Experience and are "blocklisted".
    • These related lists are also blocklisted in Visualforce with the <apex:relatedList> tag.

    Avoid Supernav and iframe

    • It's recommended to avoid using <apex:iframe> on a Visualforce page in Lightning Experience.
    • Visualforce pages are wrapped in their own iframe when displayed in Lightning Experience, adding complexity to the environment.

    Don't Set window.location Directly

    • Setting the window.location variable directly in JavaScript code won't work in Lightning Experience.
    • Code needs to be modified to work in Lightning Experience.

    sforce.one Isn't Salesforce Mobile-Only

    • The sforce.one JavaScript utility object is available in both the Salesforce app and Lightning Experience.
    • It's not a reliable way to determine if a page is running in a mobile or desktop context.

    Changes with Action Overrides

    • Visualforce overrides of standard actions are slightly different in Lightning Experience compared to Salesforce Classic.
    • Overrides for the object list action won't be accessible in Lightning Experience.
    • The object list action is combined into the object home page in Lightning Experience.
    • Overriding the object tab action overrides the object home page in Lightning Experience.

    Visualforce in Lightning Experience

    • Use of Visualforce pages in Lightning Experience is possible but discouraged.
    • Visualforce pages are displayed within their own iframe, adding increased complexity to the environment.
    • Each Visualforce page in Lightning adds an additional layer to the iframe stack, complicating interaction and management.
    • Understanding iframes is crucial for effectively managing their impact on the Document Object Model (DOM) and JavaScript behavior.
    • Debugging nested iframes can be challenging, especially for those lacking experience with iframe structures.
    • Due to debugging difficulties and increased complexity, it is recommended to avoid using Visualforce pages in the Lightning Experience environment.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    Learn which Visualforce components to avoid using in Lightning Experience and identify features where Visualforce pages or components cannot be used.

    Use Quizgecko on...
    Browser
    Browser