Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Introduction to Pages (Visualforce)


Published on can automatically generate user interfaces, but sometimes you want to go a bit further. This session explores pages (Visualforce), the component-based UI framework that lets you build attractive, dynamic, reusable user interfaces. We'll cover code walk-throughs, common use cases, a little about code (Apex), and sample UIs.

Published in: Business
  • Be the first to like this

Introduction to Pages (Visualforce)

  1. 1. Introduction to Pages (Visualforce)<br />Developers<br />Reid<br />@ReidCarlberg<br />@ForceDotComLabs<br />
  2. 2. Safe Harbor<br />Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.<br />The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of, inc. is included in our annual report on Form 10-K for the most recent fiscal year ended January 31, 2010. This documents and others are available on the SEC Filings section of the Investor Information section of our Web site. <br />Any unreleased services or features referenced in this or other press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available., inc. assumes no obligation and does not intend to update these forward-looking statements.<br />
  3. 3. Ask Your Questions in the Dreamforce Org!<br />
  4. 4. Who Has…<br />Just started with<br />Modified an existing HTML web page on any system?<br />Developed an HTML web page from scratch?<br />Developed a JSP/PHP/etc. type page?<br />Implemented a complete webapp from scratch?<br />
  5. 5. Visualforce<br />provides UI flexibility.<br />Why Visualforce?<br />Salesforce Mobile<br />Best Mobile Experience<br />
  6. 6. After this session<br />Describe Visualforce and why it matters<br />Explain 3 Common Usage Patterns<br />Identify 2 Ways of Authoring Pages<br />Decide your personal next step<br />
  7. 7. Model-View-Controller<br />Model<br />View<br />Controller<br />
  8. 8. Today’s Demo App: Project Management<br />Project__c<br />Milestone__c<br />User<br />Action__c<br />
  9. 9. Developer Mode, Pages & Styles<br />
  10. 10. What We Did<br />Activate Developer Mode<br />Update the URL to “…/apex/MyNewPage”<br />standardController=Project__c<br />apex:Detail<br />showHeader=false<br />showSidebar=false<br />“…/apex/MyNewPage?id=[some project id]”<br />MAGIC!<br />
  11. 11. Learning the Syntax<br /><br />
  12. 12. Types of Controllers<br />standardController<br />All CRUD operations<br />Expects “id” parameter<br />You write nocode<br />custom controllers<br />Replace standard controllers completely<br />You write all code<br />controller extensions<br />Extend standard controllers<br />You write some code<br />
  13. 13. Extensions & UI Enhancement<br />
  14. 14. What We Did<br />Wanted to see more detail about GrandChild objects<br />Created a Custom Page (no header, no sidebar)<br />Standard Controller = “Project__c”<br />Extensions=“ProjectMilestoneActionController”<br />Followed prompts to created class, methods<br />Built out a list of milestones and tasks<br />MAGIC!<br />
  15. 15.<br />Learning What’s Possible<br /><br />
  16. 16. Multiple Objects & Action Overrides<br />
  17. 17. Advanced Topics<br />Rerender<br />Wizards<br />List views<br />Reporting & Dashboards<br />Portals<br />Mobile Deployment<br />Email Templates<br />
  18. 18. Best Practices<br />Develop custom Apex code in sandbox or developer edition<br />Use security scanner to ensure quality<br /><br />Rely on server side where possible<br />faster!<br />Insert only a single <apex:form /> tag <br />faster!<br />Avoid re-writing every page<br />
  19. 19. Next Steps<br />Join<br />Get a Developer Edition<br />Do the Workbook<br />Visit the Dev Zone!<br />Get the Cheatsheet (actually get ‘em all)<br />Do the Workbook<br />Attend More Sessions<br />Intro to Sites<br />Developing Applications with JQuery<br />
  20. 20. Resources, Q & A<br />Chatter Resources<br />This Deck in Dreamforce org<br />Twitter Resources<br />@ReidCarlberg<br />@ForceDotComLabs<br />@ForceDotCom<br />@Salesforce<br />
  21. 21. Introduction to Pages (Visualforce)<br />
  22. 22. Visit the Developer Training and Support Booth in Zone<br />D I S C O V E R<br />Developer training, certification and support resources <br />that help you achieve<br />S U C C E S S<br />Find us in the Partner Demo Area of <br /> Zone 2nd Floor Moscone West<br />Learn about Developer Certifications<br />Discover Developer Learning Paths<br />
  23. 23. Remember. . .<br /><ul><li>Check Chatter for additional session information
  24. 24. Get your developer Workbooks and Cheat Sheets in the Zone
  25. 25. Visit for more information related to this topic</li></ul>Don’t forget the survey!<br />
  26. 26. How Could Dreamforce Be Better? Tell Us!<br />Log in to the Dreamforce app to submit<br />surveys for the sessions you attended<br />Use the Dreamforce Mobile app to submit surveys<br />OR<br />Every session survey you submit is a chance to win an iPod nano!<br />