Visualforce Development Cookbook


Visualforce Development Cookbook
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Provide an enhanced user experience with dynamically generated, reactive pages
  • Access data over additional channels via public web sites and mobile pages
  • Packed with easy to follow recipes, including step-by-step instructions and Apex/Visualforce code downloads

Book Details

Language : English
Paperback : 334 pages [ 235mm x 191mm ]
Release Date : September 2013
ISBN : 1782170804
ISBN 13 : 9781782170808
Author(s) : Keir Bowden
Topics and Technologies : All Books, Enterprise Products and Platforms, Web Development, Cookbooks, Enterprise

Table of Contents

Preface
Chapter 1: General Utilities
Chapter 2: Custom Components
Chapter 3: Capturing Data Using Forms
Chapter 4: Managing Records
Chapter 5: Managing Multiple Records
Chapter 6: Visualforce Charts
Chapter 7: JavaScript
Chapter 8: Force.com Sites
Chapter 9: jQuery Mobile
Index
  • Chapter 1: General Utilities
    • Introduction
    • Overriding standard buttons
    • Data-driven styling
    • Turning off an action poller
    • Visualforce in the sidebar
    • Passing parameters to action methods
    • Reacting to URL parameters
    • Passing parameters between Visualforce pages
    • Opening a pop-up window
    • Adding a launch page
    • Testing a custom controller
    • Testing a controller extension
    • Chapter 2: Custom Components
      • Introduction
      • Passing attributes to components
      • Updating attributes in component controllers
      • Passing action methods to components
      • Data-driven decimal places
      • The custom iterator component
      • Setting a value into a controller property
      • Multiselecting related objects
      • Notifying the containing page controller
      • Chapter 3: Capturing Data Using Forms
        • Introduction
        • Editing a record in Visualforce
        • Adding error messages to field inputs
        • Adding error messages to nonfield inputs
        • Using field sets
        • Adding a custom lookup to a form
        • Adding a custom datepicker to a form
        • Retrieving fields when a lookup is populated
        • Breaking up forms with action regions
        • The "Please wait" spinner
        • Avoiding validation errors with action regions
        • Action chaining
        • Errors – harmful if swallowed
        • Chapter 4: Managing Records
          • Introduction
          • Styling fields as required
          • Styling table columns as required
          • Attaching an image to a record
          • Managing attachments
          • Maintaining custom settings
          • Refreshing record details from embedded Visualforce
          • Using wrapper classes
          • Changing options based on the user input
          • Changing page layout based on the user input
          • Form-based searching
          • Chapter 5: Managing Multiple Records
            • Introduction
            • Preventing duplicates by searching before creating
            • Editing a record and its parent
            • Managing a list of records
            • Converting a lead
            • Managing a hierarchy of records
            • Inline-editing a record from a list
            • Creating a Visualforce report
            • Loading records asynchronously
            • Chapter 6: Visualforce Charts
              • Introduction
              • Creating a bar chart
              • Creating a line chart
              • Customizing a chart
              • Adding multiple series
              • Creating a stacked bar chart
              • Adding a third axis
              • Embedding a chart in a record view page
              • Multiple charts per page
              • Chapter 7: JavaScript
                • Introduction
                • Using action functions
                • Avoiding race conditions
                • The confirmation dialog
                • Pressing Enter to submit
                • Tooltips
                • The character counter
                • The onload handler
                • Collapsible list elements
                • The scrolling news ticker
                • Carousel messages
                • Hiding buttons on submit
                • Client-side validation
                • Trapping navigation away
                • Chapter 8: Force.com Sites
                  • Introduction
                  • Creating a site
                  • Record and field access
                  • Retrieving content from Salesforce
                  • Web to lead form
                  • Creating a website template
                  • Adding a header menu to a template
                  • Adding a sidebar to a template
                  • Conditional rendering in templates
                  • Chapter 9: jQuery Mobile
                    • Introduction
                    • Mobilizing a Visualforce page
                    • Navigation and transitions
                    • Adding a navigation bar
                    • Working with dialogs
                    • Listing records
                    • Mobile Visualforce forms
                    • Redirecting to the mobile page based on the browser
                    • Storing the user's location
                    • Scanning the QR code to access the page

                    Keir Bowden

                    Keir Bowden is a 25-year veteran of the IT industry from the United Kingdom. After spending the early part of his career in the Defense industry, he moved into investment-banking systems, implementing systems for Banque Nationale de Paris, CitiGroup, and Deutsche Bank. In the late 1990s, Keir moved into Internet technologies, leading the development of the order management and payment handling systems of one of the first European Internet shopping sites. Keir started working with Force.com in late 2008 and has been recognized by Salesforce as a Force.com MVP for contribution and leadership in the community. In 2011, he became one of the selected few people worldwide to earn all Salesforce.com certifications, and now serves as a judge on the EMEA Technical Architect Certification Review Boards. Keir is also a prominent blogger on Apex and Visualforce solutions, and regular speaker at events such as Dreamforce and Cloudstock. Keir is a Chief Technical Officer of BrightGen, a Salesforce.com Platinum Cloud Alliance Partner in the United Kingdom, where he is responsible for current and future technical strategy. Keir worked as the technical reviewer for Salesforce CRM Admin Cookbook by Packt Publishing before accepting the challenge of authoring his first book.
                    Sorry, we don't have any reviews for this title yet.

                    Code Downloads

                    Download the code and support files for this book.


                    Submit Errata

                    Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                    Errata

                    - 3 submitted: last submission 14 Mar 2014

                    Errata type: Code. Page no.: 13

                    "How to do it..." is missing a step to "Click [Save]" between 3 and 4.

                    Errata type: Code. Page no.: 27


                    Step 8 reads "Locate the entry for the Setup page and click on the Security
                    link"

                    Should read

                    "Locate the entry for the Popup page and click on the Security
                    link"

                    Errata type: Typo. Page no.: 12 and also in the code sample.


                    1. "Authorising" should be spelled "Authorizing".
                    2. "Authorised" should be spelled "Authorized".

                    Sample chapters

                    You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                    Frequently bought together

                    Visualforce Development Cookbook +    Salesforce CRM: The Definitive Admin Handbook - Second Edition =
                    50% Off
                    the second eBook
                    Price for both: $43.05

                    Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                    What you will learn from this book

                    • Write effective controller tests
                    • Maintain multiple records from a single page
                    • Produce re-usable components for utility functions
                    • Create custom charts to visualize single or multiple sets of data
                    • Redraw part of a page in response to user input
                    • Replace standard components with custom, brandable versions
                    • Provide access to data via a public website
                    • Allow users to create and retrieve data from a mobile device

                    In Detail

                    Visualforce, in conjunction with Apex, makes it easy to develop sophisticated, custom UIs for Force.com desktop and mobile apps without having to write thousands of lines of code and markup. The "Dynamic Binding" feature of Visualforce lets you develop generic Visualforce pages to display information related to the records without necessarily knowing which data fields to show. This is accomplished through a formula-like syntax, which makes it simple to manage even a complex hierarchy of records.

                    "Visualforce Development Cookbook" provides solutions for a variety of challenges faced by Salesforce developers and demonstrates how easy it is to build rich, interactive pages using Visualforce. Whether you are looking to make a minor addition to the standard page functionality or override it completely, this book will provide you with the required help throughout.

                    "Visualforce Development Cookbook" starts with explaining the simple utilities and builds up to advanced techniques for data visualization and reuse of functionality. This book contains recipes that cover various topics like creating multiple records from a single page, visualizing data as charts, using JavaScript to enhance client-side functionality, building a public website and making data available to a mobile device.

                    "Visualforce Development Cookbook" provides lots of practical examples to enhance and extend the Salesforce user interface.

                    Approach

                    "Visualforce Development Cookbook" is written in such a way that even complex concepts are explained in an easy-to-understand manner. Following a Cookbook structure, the book covers some essential technical scenarios and includes over 75 recipes focusing on real-world development problems. This book is packed with illustrations and also contains lots of code samples for the better understanding of the reader.

                    Who this book is for

                    "Visualforce Development Cookbook" is aimed at developers who have already grasped the basics of Visualforce. Awareness of the standard component library and the purpose of controllers is expected.

                    Code Download and Errata
                    Packt Anytime, Anywhere
                    Register Books
                    Print Upgrades
                    eBook Downloads
                    Video Support
                    Contact Us
                    Awards Voting Nominations Previous Winners
                    Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                    Resources
                    Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software