User Interface Flashcards
Describe how to display Salesforce data using a Visualforce page.
Introduction to Output Components
Visualforce includes nearly 150 built-in components that you can use on your pages. Components are rendered into HTML, CSS, and JavaScript when a page is requested. Coarse-grained components provide a significant amount of functionality in a single component, and might add a lot of information and user interface to the page it’s used on. Fine-grained components provide more focused functionality, and enable you to design the page to look and behave the way you want.
Here we’ll focus on output components, that is, components that output data from a record and enable you to design a view-only user interface.
Display Record Details
Use <detail> to quickly add record details to a page that uses a standard controller.</detail>
Some output components bring a lot to the party. These “coarse grained” components offer a lot of functionality, displaying many fields, labels, and other user interface elements. They let you quickly build pages that are variations on the built-in Salesforce user interface.
Display Related Lists
Use <relatedlist> to display lists of records related to the current record.</relatedlist>
Display Individual Fields
Use <outputfield> to display individual fields from a record.</outputfield>
Display A Table
Use <pageblocktable> to add a table of data to a page.</pageblocktable>
What exactly is a related list? What does <relatedlist> do when you add it to a page?</relatedlist>
It grabs a list of similar data elements. For example, a list of contacts for the account.
It sets up a table with columns for each field, headers atop each column, and so on.
For each item in the list—for each related contact—it adds a row to the table, and fills in each column with the appropriate field from that record.
You can do the same thing in your own Visualforce markup using iteration components. An iteration component works with a collection of similar items, instead of on a single value. For example, {!Account.contacts} is an expression that evaluates to a list of contacts for an account. You can use this expression with an iteration component to create a list or table with details of these related contacts.
Coarse-grained components let you quickly add lots of functionality to a page, while fine-grained components give you more control over the specific details of a page.
https://developer.salesforce.com/docs/atlas.en-us.204.0.pages.meta/pages/pages_compref.htm
Describe the types of web content that can be incorporated into Visualforce pages
- Maps
- Charts
- flows
- PDF renderer
- custom content type.
Describe how to incorporate Visualforce pages into Force.com applications.
- From a Tab override
- Inline within a standard page layout
- Overriding a Standar button or link
- Custom Button
- Email Templates
- Mobile Pages
- Force.com Sites
Describe the benefits of the Lightning Component framework.
- Out-of-the-Box Component Set
- Salesforce provides a number of components to bootstrap your app development.
- Performance
- The component framework leverages a stateful client (using JavaScript) and a stateless server (using Apex). This structure allows the client to call the server only when absolutely necessary. With fewer calls to the server, your apps are more responsive and efficient.
- Event-Driven Architecture
- Events are key to the Lightning component framework. Components listen to application and component events and respond accordingly.
- Rapid Development
- The simple markup and pre-made components mean that you can get applications out the door faster than ever. Particularly if you’re comfortable with Visualforce markup, learning component markup is a breeze.
- Device-Aware and Cross-Browser Compatibility
- A huge advantage of Lightning components is that you don’t have to worry about compatibility across devices and browsers. The component framework handles this work for you.
Describe the resources that can be contained in a Lightning Component