Apex and Visualforce

(Redirected from Apex Code and Visualforce)

You can extend your Force.com applications beyond the boundaries of the Application Framework with Apex and Visualforce. Apex is the world's first on-demand programming language. You can use Apex to extend the functionality of your applications with extensive logic implemented through triggers. You can create Apex classes for optimal standardization and code reuse. Visualforce gives you the ability to easily reshape the presentation of your Force.com applications, and that's only the beginning. You can use Visualforce pages to combine data from multiple Force.com objects, to blend data from web services into your applications, or to implement a robust Web 2.0-style interface for users.


General

Platform State Of The Union: Core presentation on the Force.com platform from Dreamforce '07.

Whitepaper: The Force.com Platform: The Force.com platform brings all the advantages of the on-demand environment to your own custom applications. Get an introduction to the basics of the platform, including its architecture and main components.

Powering 100 Million Transactions Per Day - Behind the Scenes at Salesforce.com: How do we do it? An in-depth look at the infrastructure behind the world's most popular on-demand platform from Dreamforce '07.

Meet the Developers: Roundtable session with the creators of the Force.com platform from Dreamforce '07.

View Apex Documentation: Apex user guide and documentation

View Visualforce Documentation: Visualforce user guide and documentation

Success Stories

What will you build ?

Add your story here.

Visualforce

Visualforce pages deliver the ability to create custom pages for your Force.com applications. Visualforce pages includes a set of tags to describe a variety of rich components into your page design. These components bring the full power of the Force.com meta-data driven platform to your pages, while giving you complete freedom to design pages to suit your specific user interface requirements. Visualforce pages run with the help of controllers, which provide the functional links between the page interface and the underlying data. You can use standard controllers which represent any Force.com data object, or create your own custom controllers for more flexible data access to an expanded range of data sources.
Read more on Visualforce.

Visualforce: Get the developer's introduction to Visualforce, and learn how to get started with this new technology.

Visualforce Technical Overview: This screencast presentation by Adam Gross explains Visualforce, and walks you through the basics of how you can use it to build powerful user experiences into your on-demand apps.

Getting Started with Visualforce: Presentation from Dreamforce '07.

Visualforce Developer's Guide: The official developer documentation provides an introduction and a great "quick start" tutorial.
Summer '08 -- Download PDF || View Online


Visualforce Deep Dive: Presentation from Dreamforce '07.

Using Browser Technologies in Visualforce: Part 1 of 2 - Gives an overview of how standard browser technologies, including AJAX and Flex relate to Visualforce pages.

Introducing Visualforce - Create Any User Interface as a Service: Get in-depth coverage provided by top Salesforce technical experts. Plus, learn how you can get into the Visualforce Developer Preview.

Force.com Tutorial: An Introduction to Visualforce: This article provides a series of tutorials that contain enough material for you to get started building your own applications utilizing Visualforce.

Desktop Demo & Sample Code using Visualforce : Visualforce Desktop is a sample application which shows the UI flexibility of Force.com platform.

Force.com for ASP.NET Developers: This article provides a dive deep into using the Force.com Platform Web Services to access your Salesforce.com data from within a Visualforce page or from within a Microsoft ASP.NET Web form.


Whitepaper: Visualforce: Visualforce is a key component of Force.com, salesforce.com’s platform as a service (PaaS). Learn how companies and their developers can create any kind of user experience and deliver it entirely on demand, without software.

Developer Stories

What will you build ?

Add your story here.

Simple Code samples

 Image:Icon doc sm.gif First Visualforce page

 Image:Icon doc sm.gif Controller code for AJAX Visualforce page

 Image:Icon doc sm.gif Visualforce page with AJAX code

 Image:Icon doc sm.gif Visualforce page passing parameters to controller

 Image:Icon doc sm.gif Basic Visualforce page accessing Salesforce data

More Cookbook Code

 Image:Icon doc sm.gif Basic Visualforce form page

 Image:Icon doc sm.gif Controller code for basic table of data

 Image:Icon doc sm.gif Page code for basic table of data

 Image:Icon doc sm.gif Simple Visualforce custom controller

 Image:Icon doc sm.gif Visualforce page for simple custom controller

 Image:Icon doc sm.gif Second simple Visualforce custom controller

 Image:Icon doc sm.gif Visualforce page for second simple custom controller

Cookbook Opportunity Wizard

 Image:Icon doc sm.gif Controller code for new Opportunity wizard

 Image:Icon doc sm.gif Page 1 for new Opportunity wizard

 Image:Icon doc sm.gif Page 2 for new Opportunity wizard

 Image:Icon doc sm.gif Page 3 for new Opportunity wizard


Other Visualforce Code and Project Examples

 Image:Icon doc sm.gif Creating custom tab for a single Record Type An example using Visualforce page to replicate a home tab for a single account record type

 Image:Icon doc sm.gif Creating a simple blog application An example of using an Apex page to build a simple Blog app, uses YUI rich text widget

Apex

Apex is the world's first on-demand development language. Apex enables you extend the functionality of your Force.com applications with a robust procedural language. You can use this language to create triggers, which fire when any user performs certain data operations. Apex can also be used to create classes, which can be called from other classes and triggers, enabling productive code reuse and standardization. You can expose any Apex class as a Web service by simply adding a few keywords to the class.

General

Getting Started with Apex Code: Introduction to Apex Code from Dreamforce '07.

Apex Resources

Apex Language Reference: Core documentation for the Apex programming language.

Summer '08 -- Download PDF || View Online

Apex Code: The World's First On-Demand Programming Language: Whitepaper that provides and overview to the capabilities and technology of Apex.

Introduction to Apex : Recorded presentation of the Apex code overview.

Apex Code Technical Overview: Recorded presentation providing an overview of Apex from Apex Day, 2007.

Apex Code Demo: Recorded demo of a few apps created with Apex

Writing Apex Code Demo: Recorded presentation showing the creation of a simple Apex project, from Apex Day, Jan 2007.

Announcing Force.com SOA : Overview of Force.com SOA, which includes the ability to consume Web serivces inside of Apex.

Force.com SOA Demo: Recorded demo highlighting the capabilities of Force.com SOA.

Code samples

 Image:Icon doc sm.gif Avoiding runtime governor limits

 Image:Icon doc sm.gif Avoiding runtime governor limits - alternative

 Image:Icon doc sm.gif Avoiding runtime governor limits - alternative 2

 Image:Icon doc sm.gif Avoiding runtime governor limits - inefficient alternative

 Image:Icon doc sm.gif This is a helper class called by line 17 & 18

 Image:Icon doc sm.gif Avoiding runtime governor limits - alternative 3

 Image:Icon doc sm.gif Tester application for lead de-deduplicator

 Image:Icon doc sm.gif Preventing duplicate lead entry, using maps

 Image:Icon doc sm.gif Correlating query results with maps

 Image:Icon doc sm.gif Controlling recursive triggers with member variables

 Image:Icon doc sm.gif This one should be linked to the one above - it is a sub-taks

 Image:Icon doc sm.gif Tester application for recursive trigger

 Image:Icon doc sm.gif Hello World' application defined as a web service

 Image:Icon doc sm.gif S-control that calls the web service.

 Image:Icon doc sm.gif Apex class to determine test coverage.

 Image:Icon doc sm.gif Trigger that calls class method

 Image:Icon doc sm.gif Class called by trigger in 38.

 Image:Icon doc sm.gif Trigger to create new records

 Image:Icon doc sm.gif Trigger to update data in child records

 Image:Icon doc sm.gif Populate values in child record from parent record

 Image:Icon doc sm.gif Web service called from a pushbutton

 Image:Icon doc sm.gif Pushbutton that calls a Web service

 Image:Icon doc sm.gif Pushbutton to delete multiple records

 Image:Icon doc sm.gif Pushbutton to update multiple records

 Image:Icon doc sm.gif Template for a custom help s-control

 Image:Icon doc sm.gif Reading a parameter in an s-control

 Image:Icon doc sm.gif Passing a parameter to an s-control

 Image:Icon doc sm.gif Redirecting a User to an Edit, Detail, or List Page

 Image:Icon doc sm.gif Trigger to update multiple records (part of a solution to receive email updates every time a record changes)

 Image:Icon doc sm.gif S-control to format currency (part of roll-up summary field for different types of opportunities)

 Image:Icon doc sm.gif S-control snippet (part of roll-up summary field for different types of opportunities)

 Image:Icon doc sm.gif S-control to display data from a related record on a detail page

 Image:Icon doc sm.gif Force.com Email Services - Create tasks from Emails


 Image:Icon doc sm.gif Unsubscribe from emails with Email Services