Posts

Showing posts from February, 2011

What Is Standard Controller In Visualforce?

In Visualforce, a standard controller is a pre-built Apex controller provided by Salesforce that allows developers to work with standard database objects (such as records from Salesforce objects like Account, Contact, Opportunity, etc.) without having to write custom Apex code. Standard controllers provide basic CRUD (Create, Read, Update, Delete) operations and other standard functionality for interacting with these objects in Visualforce pages. When using a standard controller in Visualforce, you can directly reference fields and perform operations like saving records without explicitly writing Apex code. Standard controllers also handle security and access permissions automatically, ensuring that users only have access to the records they are authorized to view or modify. Here's a basic example of using a standard controller in Visualforce: <apex:page standardController="Account">     <apex:form>         <apex:inputField value="{!Account.N...

What Is Standard List Controllers In Visualforce?

Standard List Controllers in Visualforce provide developers with a way to display lists of records from standard or custom Salesforce objects without the need for writing Apex code explicitly. These controllers come pre-built with basic functionality for navigating, filtering, and working with collections of records. Here are some key points about Standard List Controllers: Built-in CRUD Operations: Standard List Controllers provide basic CRUD operations (Create, Read, Update, Delete) out-of-the-box, allowing users to view, edit, and delete records directly from Visualforce pages without writing custom Apex code. Automatic Pagination: When displaying a large set of records, Standard List Controllers automatically handle pagination, splitting the records into manageable chunks and providing navigation controls for users to navigate between pages. Sorting and Filtering: Standard List Controllers offer built-in support for sorting and filtering records based on various criteria, such as f...