Visualforce Development Cookbook - Second Edition

Discover over 70 real-world examples to overcome the most complex concepts you will face developing with Visualforce
Preview in Mapt

Visualforce Development Cookbook - Second Edition

Keir Bowden

Discover over 70 real-world examples to overcome the most complex concepts you will face developing with Visualforce
Mapt Subscription
FREE
$29.99/m after trial
eBook
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$28.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Visualforce Development Cookbook - Second Edition Book Cover
Visualforce Development Cookbook - Second Edition
$ 39.99
$ 28.00
Kubernetes Cookbook - Second Edition Book Cover
Kubernetes Cookbook - Second Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $40.98
Add to Cart

Book Details

ISBN 139781786468086
Paperback358 pages

Book Description

Visualforce is a framework that allows developers to build sophisticated, custom user interfaces that can be hosted natively on the Force.com platform. The Visualforce framework includes a tag-based markup language, similar to HTML that is used to write the Visualforce pages and a set of controllers that are used to write business logic to the Visualforce pages.

Visualforce Development Cookbook provides solutions to 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 help you require throughout.

You will start by learning about the simple utilities and will build up to more advanced techniques for data visualization and to reuse functionality. You will learn how to perform various tasks such as 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.

With an interesting chapter on tackling common issues faced while developing Visualforce pages, the book provides lots of practical examples to enhance and extend your Salesforce user interface.

Table of Contents

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 non-field 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
Action chaining
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
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
Displaying report data in Visualforce
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: Enhancing the Client with JavaScript
Introduction
Using action functions
Avoiding race conditions
The confirmation dialog
Pressing Enter to submit
The onload handler
Collapsible list elements
Trapping navigation away
Creating a record using JavaScript remoting
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: Visualforce in Salesforce1
Introduction
Navigating between pages
Lightning forms
Capturing the user's location
Saving an image when creating a record
Capturing a signature when creating a record
Displaying a location in a map
Scanning the QR code to access the record
Chapter 10: Troubleshooting
Introduction
Avoiding validation errors with action regions
Surfacing errors
Multiple bindings to the same record
Reducing view state size 1 - the transient keyword
Reducing view state size 2 - HTML vs Visualforce components
Debugging Visualforce
Logging messages in a Visualforce page

What You Will Learn

  • Pass parameters between Visualforce pages
  • Update attributes in component controllers
  • Avoid validation errors with action regions
  • Refresh record details from embedded Visualforce
  • Create and develop a website template from scratch
  • Get to know about the Salesforce Lightening Design system and use Visualforce in Salesforce1
  • Effectively tackle frequently-faced problems while developing Visualforce pages

Authors

Table of Contents

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 non-field 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
Action chaining
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
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
Displaying report data in Visualforce
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: Enhancing the Client with JavaScript
Introduction
Using action functions
Avoiding race conditions
The confirmation dialog
Pressing Enter to submit
The onload handler
Collapsible list elements
Trapping navigation away
Creating a record using JavaScript remoting
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: Visualforce in Salesforce1
Introduction
Navigating between pages
Lightning forms
Capturing the user's location
Saving an image when creating a record
Capturing a signature when creating a record
Displaying a location in a map
Scanning the QR code to access the record
Chapter 10: Troubleshooting
Introduction
Avoiding validation errors with action regions
Surfacing errors
Multiple bindings to the same record
Reducing view state size 1 - the transient keyword
Reducing view state size 2 - HTML vs Visualforce components
Debugging Visualforce
Logging messages in a Visualforce page

Book Details

ISBN 139781786468086
Paperback358 pages
Read More

Read More Reviews

Recommended for You

Salesforce CRM - The Definitive Admin Handbook - Fourth Edition Book Cover
Salesforce CRM - The Definitive Admin Handbook - Fourth Edition
$ 47.99
$ 33.60
Learning Salesforce Visual Workflow and Process Builder - Second Edition Book Cover
Learning Salesforce Visual Workflow and Process Builder - Second Edition
$ 39.99
$ 28.00
Native Docker Clustering with Swarm Book Cover
Native Docker Clustering with Swarm
$ 35.99
$ 25.20
Tableau: Creating Interactive Data Visualizations Book Cover
Tableau: Creating Interactive Data Visualizations
$ 67.99
$ 47.60
Go Programming Blueprints - Second Edition Book Cover
Go Programming Blueprints - Second Edition
$ 39.99
$ 28.00
TypeScript: Modern JavaScript Development Book Cover
TypeScript: Modern JavaScript Development
$ 69.99
$ 49.00