12
Coding the Salesforce User Interface with Visualforce Pages May 22nd, 2014

Coding the Salesforce User Interface with Visualforce Pages

  • View
    271

  • Download
    4

Embed Size (px)

DESCRIPTION

An Introduction to creating custom user interfaces for your Salesforce data using Visualforce.

Citation preview

Page 1: Coding the Salesforce User Interface with Visualforce Pages

Coding the Salesforce User Interface with Visualforce PagesMay 22nd, 2014

Page 2: Coding the Salesforce User Interface with Visualforce Pages

Christopher Alun Lewis

Advanced Developer

Force.com MVP

Welcome!

Simon Goodyear

Advanced Developer

Force.com MVP

Page 3: Coding the Salesforce User Interface with Visualforce Pages

What is Visualforce?

• A Framework for building custom user interfaces for your

Salesforce data

• 100% native, hosted in your Salesforce org

• Componentised, tag based syntax

Page 4: Coding the Salesforce User Interface with Visualforce Pages

Model View Controller (MVC) Pattern

Model Controller View

Your Data Your Logic Your Interface

Standard andCustom Objects

Standard Controllers +Apex Code

Visualforce

Page 5: Coding the Salesforce User Interface with Visualforce Pages

Anatomy of a Visualforce Component

<apex:outputField value = “{!account.Name}”/>

Prefix – Library the Component belongs to (apex, chatter etc.)

Component Name – Type of Component to be generated

Attribute Value – String literal or merge field value passed to the Component

Attribute Name – The name of a value to be passed to the Component

Page 6: Coding the Salesforce User Interface with Visualforce Pages

Anatomy of a Visualforce Tag

<apex:outputField value = “{!account.Name}”/>

Page 7: Coding the Salesforce User Interface with Visualforce Pages

Use the Expansive Tag Library…

• 140+ tags to choose from (more

included through releases)

• Apply SF standard styling easily

• Create fields, actions, charts,

forms and chatter feeds

<apex:actionFunction><apex:actionPoller><apex:actionRegion><apex:actionStatus><apex:actionSupport><apex:areaSeries><apex:attribute><apex:axis><apex:barSeries><apex:canvasApp><apex:chart>...

Page 8: Coding the Salesforce User Interface with Visualforce Pages

…Or Roll Your Own!

• Visualforce integrates easily

with other standard web tech:

• HTML

• Javascript

• CSS

• Create your own custom

reusable components

<c:myComponent/>

Page 9: Coding the Salesforce User Interface with Visualforce Pages

DEMO

LET’S SEE SOME CODE!

Page 10: Coding the Salesforce User Interface with Visualforce Pages

Other Visualforce Use Cases

Page 11: Coding the Salesforce User Interface with Visualforce Pages

Further Reading

• Visualforce Workbook

http://www.salesforce.com/us/developer/docs/workbook_vf/index.htm

• Visualforce Developer’s Guide

http://www.salesforce.com/us/developer/docs/pages/index_Left.htm

• Developer Resources

https://developer.salesforce.com

Page 12: Coding the Salesforce User Interface with Visualforce Pages

Thank You!

Christopher Alun

Lewis

@ChrisAlunLewis

Simon Goodyear

@simongoodyear