Title: Beyond SControls: Learn to Use Visualforce in Your Force'com Apps
1Beyond S-Controls Learn to Use Visualforce in
Your Force.com Apps
Track Admin to App Builder
- Jon Mountjoy, salesforce.com
- Jesse Lorenz, salesforce.com
2Safe Harbor Statement
Safe harbor statement under the Private
Securities Litigation Reform Act of 1995 This
presentation may contain forward-looking
statements including but not limited to
statements concerning the potential market for
our existing service offerings and future
offerings. All of our forward looking statements
involve risks, uncertainties and assumptions. If
any such risks or uncertainties materialize or if
any of the assumptions proves incorrect, our
results could differ materially from the results
expressed or implied by the forward-looking
statements we make. The risks and uncertainties
referred to above include - but are not limited
to - risks associated with possible fluctuations
in our operating results and cash flows, rate of
growth and anticipated revenue run rate, errors,
interruptions or delays in our service or our Web
hosting, our new business model, our history of
operating losses, the possibility that we will
not remain profitable, breach of our security
measures, the emerging market in which we
operate, our relatively limited operating
history, our ability to hire, retain and motivate
our employees and manage our growth, competition,
our ability to continue to release and gain
customer acceptance of new and improved versions
of our service, customer and partner acceptance
of the AppExchange, successful customer
deployment and utilization of our services,
unanticipated changes in our effective tax rate,
fluctuations in the number of shares outstanding,
the price of such shares, foreign currency
exchange rates and interest rates. Further
information on these and other factors that could
affect our financial results is included in the
reports on Forms 10-K, 10-Q and 8-K and in other
filings we make with the Securities and Exchange
Commission from time to time. These documents are
available on the SEC Filings section of the
Investor Information section of our website at
www.salesforce.com/investor. Salesforce.com, inc.
assumes no obligation and does not intend to
update these forward-looking statements, except
as required by law.
3Agenda
- S-Controls were cool (really!)
- S-Controls have issues (its a shame)
- Introducing Visualforce (good medicine)
- More Visualforce (now youre just showing off)
- Summary (what we want you to remember)
4S-Controls Were Cool
5S-Control Foibles
6S-Control Foibles Compatibility
vs.
vs.
7S-Control Foibles Compatibility
4?! 4?!
8?!
8S-Control Foibles Productivity
- S-Controls contain both business logic and UI
- Difficult to create and maintain common look and
feel - Small changes may require complete overhaul
- Modifying the UI can lead to unintended changes
in the business logic - Not everyone is a UI expert, not every UI expert
is a skilled programmer - you must be both to be productive with client
programming
9S-Control Foibles Performance
- It looks simple
- But for most S-Controls...
10S-Control Foibles Performance
- This is what happens under the hood
11Welcome to Visualforce
12Visualforce A One Stop Shop
Fetch URL
13Visualforce solution
- Create pages on server - deliver to client,
fully composed. - Server-side access to server-side data
- Force.com addresses browser incompatibilities
- Continue to enable Ajax interactions where
needed - Complete, modular set of components with
standard look and feel - Extend the component library with Custom
Components
14Model View Controller Pattern
15Visualforce - MVC Breakdown
16Visualforce - MVC in Practice
17(No Transcript)
18Styling S-Control
http//wiki.apexdevnet.com/index.php/Stylesheets_a
nd_S-Controls_Best_Practice_Guide
19Styling - Visualforce
20CSS Styling (optional)
21CSS Styling (optional)
22CSS Styling (optional)
- ltapexpage standardcontroller"Account"
showheader"false" extensions"AccountExtension"gt - lthtmlgtltheadgtlttitlegt!Account.Namelt/titlegt
- ltstylegt
- body font-family Arial, Helvetica,
sans-serif - table color4d4d4d widthauto
text-alignleft text-indent5px
vertical-alignmiddle text-decorationnone
border1px solid 466e92 border-collapsecollapse
min-width375px font-size13px - td, th padding5px height1px border1px
solid 466e92 - lt/stylegt
- lt/headgt
- ltbodygt
- ltdiv style"margin 20px"gt
- ltdiv style"font-size18px margin-top0px
margin-bottom20px color0067ac"gt - !Account.Name
- lt/divgt
- ltapexformgt
- lttablegt
- lttrgt
- lttdgtAccount Namelt/tdgt
lttdgt!Account.Namelt/tdgt - lt/trgt
- ...
23 Build a Public Website
24More Advanced Demos
- Visualforce Components
- Email templates
- PDF generation
- File Upload
25Call to Action
- Our best advise to you is to embrace Visualforce
now - Learn how easy it is to code your own Visualforce
pages by exploring online resources - Start with a fresh application
- Simpler than porting an existing S-Control
- Once you're up to speed, with fresh insight and
inspiration consider rewriting those old, slow
and inefficient S-Controls
26Remember
- Performance and Execution
- Browser Compatibility
- Native Styling/Formatting
- Developer Productivity
27Session FeedbackLet us know how were doing and
enter to win an iPod nano!
- Please score the session from 5 to 1
(5excellent,1needs improvement) in the
following categories - Overall rating of the session
- Quality of content
- Strength of presentation delivery
- Relevance of the session to your organization
Additionally, please fill in the name of each
speaker score them on overall delivery.
We strive to improve, thank you for filling out
our survey.
28QUESTION ANSWER SESSION
Jon Mountjoy
Force.com Community Manager
Jesse Lorenz
Force.com Evangelist
29Visit developer.force.com for more resources.