Newer Version Available

This content describes an older version of this product. View Latest

Try It Out: Create the Mass Update Status Page

We'll begin implementing the Mass Update Status feature by creating the Visualforce page that lets users choose the value with which the Status field is updated. To make this page even more usable, we'll include a table that shows the Job Application Number, Position Title, Candidate Name, and Status of each selected job application.
  1. In the address bar of your browser, replace everything to the right of salesforce.com/ with apex/MassUpdateStatus.
The resulting URL should look something like this: https://yourDomain.my.salesforce.com/apex/MassUpdateStatus, where yourDomain is the name of your Salesforce custom domain. Remember to modify only the part of the URL after .my.salesforce.com/.
  1. Press Enter.
  2. Click the Create Page MassUpdateStatus link.
We now have a new Visualforce page called MassUpdateStatus. Next, we'll add the Visualforce markup that implements the Mass Update Status functionality.
To enter our markup, we'll use the Visualforce development mode page editor just as we did before. But this time around, we won't need any JavaScript; Visualforce will be able to do it all!
  1. In the footer at the bottom of the MassUpdateStatus Visualforce page, click MassUpdateStatus to display the Visualforce development mode page editor. Adjust the width of the editor to display all of the content.
  2. Delete all of the default markup in the Visualforce development mode page editor and replace it with the following markup. Remember that instead of typing, it's easiest to copy and paste the code from the MassUpdateStatusSample file located in the RecruitingApp-9_0.zip file you downloaded from https://developer.salesforce.com/page/Force_Platform_Fundamentals.

    In this sample code, notice that some components don't have close tags. If there are no other components nested within a component, you can “close” the tag by putting a forward slash at the end of the start tag, like: <apex:sectionHeader/>.

    Tip

  3. Click Save button.