Posts

Showing posts from January, 2011

Where Can Visualforce Pages Be Used?

Developers can use Visualforce pages to: Override standard buttons, such as the New button for accounts, or the Edit button for contacts Override tab overview pages, such as the Accounts tab home page Define custom tabs Embed components in detail page layouts Create dashboard components or custom help pages Customize, extend, or integrate the sidebars in the Salesforce console (custom console components) Add navigation menu items and actions in the Salesforce mobile app

What is Visualforce Controllers ?

A Visualforce controller is a set of instructions for what happens when a user interacts with components specified in associated Visualforce markup. One type of interaction is when a user clicks a button or link. Controllers also provide access to the data displayed in a page, and can modify component behavior. A developer can either use a standard controller provided by Lightning Platform, or add custom controller logic with a class written in Apex: A standard controller consists of the same functionality and logic that is used for a standard Salesforce page. For example, if you use the standard Accounts controller, clicking a Save button in a Visualforce page results in the same behavior as clicking Save on a standard Account edit page. If you use a standard controller on a page and the user doesn't have access to the object, the page displays an insufficient privileges error message. Resolve this error by checking the user's accessibility for an object and displaying compo...

How is Visualforce Architected?

Image
All Visualforce pages run entirely on the Lightning platform, both when a developer creates the page, and when an end user requests a page, as shown in the following architecture diagrams. Visualforce System Architecture - Development Mode   When a developer finishes writing a Visualforce page and saves it to the platform, the platform application server attempts to compile the markup into an abstract set of instructions that can be understood by the Visualforce renderer. If compilation generates errors, the save is aborted and the errors are returned to the developer. Otherwise, the instructions are saved to the metadata repository and sent to the Visualforce renderer. The renderer turns the instructions into HTML and then refreshes the developer's view, thereby providing instantaneous feedback to the developer for whatever changes were made in the markup. The architecture diagram below shows the process flow when a non-developer user requests a Visualforce page. Because the page ...

What is a Visualforce Page?

Visualforce Page is a framework that allows developers to create custom user interfaces for applications hosted on the Salesforce platform. A Visualforce page is a markup language that defines the layout and behavior of a web page within the Salesforce environment. Here are some key points about Visualforce pages: Custom User Interfaces: Visualforce pages allow developers to create custom user interfaces using a combination of HTML, CSS, and a tag-based markup language specific to Salesforce. Integration with Apex: Visualforce pages can be integrated with Apex, Salesforce's proprietary programming language. This allows developers to create dynamic and interactive pages by incorporating server-side logic. Data Binding: Visualforce pages can bind to Salesforce data, enabling developers to display, manipulate, and interact with data from Salesforce objects such as accounts, contacts, leads, and custom objects. Component-Based Architecture: Visualforce follows a component-based archite...

Getting started with Visualforce

Image
What is Visualforce? Visualforce is a web development framework that enables developers to build sophisticated, custom user interfaces for mobile and desktop apps that can be hosted on the Lightning Platform. You can use Visualforce to build apps that align with the styling of Lightning Experience, as well as your own completely custom interface. Visualforce enables developers to extend Salesforce’s built-in features, replace them with new functionality, and build completely new apps. Use powerful built-in standard controller features, or write your own custom business logic in Apex. You can build functionality for your own organization, or create apps for sale in the AppExchange. Visualforce app development is familiar to anyone who has built web apps. Developers create Visualforce pages by composing components, HTML, and optional styling elements. Visualforce can integrate with any standard web technology or JavaScript framework to allow for a more animated and rich user interface. E...