Workbook

of 80
10 views
PDF
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Document Description
Force.com Workbook: Summer '11 Force.com Workbook Last updated: August 15, 2011 © Copyright 2000-2011 salesforce.com, inc. All rights reserved. Salesforce.com is a registered trademark of salesforce.com, inc., as are other names and marks. Other marks appearing herein may be trademarks of their respective owners. Table of Contents Table of Contents About the Force.com Workbook..................................................................................................................
Document Share
Document Tags
Document Transcript
  Force.com Workbook: Summer '11 Force.com Workbook  Last updated:August 15, 2011 © Copyright 2000-2011 salesforce.com, inc. All rights reserved. Salesforce.com is a registered trademark of salesforce.com, inc., as are othernames and marks. Other marks appearing herein may be trademarks of their respective owners.   Table of Contents About the Force.com Workbook...........................................................................................................................................................3 Tutorial #1: Creating a Warehouse Application....................................................................................................................................5Step 1: Create a Merchandise Custom Object..........................................................................................................................5Step 2: Add Description, Price, and Total Inventory Fields......................................................................................................7Step 3: Create a Tab..................................................................................................................................................................9Step 4: Create a Warehouse App.............................................................................................................................................10Step 5: Create a Merchandise Record.....................................................................................................................................11Summary.................................................................................................................................................................................12 Tutorial #2: Adding Relationships......................................................................................................................................................13Step 1: Create an Invoice Statement Custom Object..............................................................................................................13Step 2: Create a Line Item Object...........................................................................................................................................15Step 3: Relate the Objects.......................................................................................................................................................17Step 4: Add Invoice Statements to the App............................................................................................................................17Step 5: Create an Invoice Record............................................................................................................................................18Summary.................................................................................................................................................................................19 Tutorial #3: Using Formulas and Validation Rules..............................................................................................................................20Step 1: Calculate a Value for Each Line Item..........................................................................................................................20Step 2: Calculate a Value for the Invoice Statement With a Roll-Up Summary Field............................................................21Step 3: Check Inventory With a Validation Rule....................................................................................................................22Step 4:Test the Validation Rule..............................................................................................................................................24Step 5: Improve the Validation Rule........................................................................................................................................24Summary.................................................................................................................................................................................25 Tutorial #4: Automating Processes Using Work  f ow...........................................................................................................................26Step 1: Populate the Line Item Price Using a Work  f ow Rule................................................................................................26Step 2: Update Total Inventory When an Order is Placed......................................................................................................28Step 3:Test the Work  f ow Rules.............................................................................................................................................30Summary.................................................................................................................................................................................31 Tutorial #5: Creating an Approval Process..........................................................................................................................................32Step 1: Create an Email Template...........................................................................................................................................32Step 2: Create an Approval Process.........................................................................................................................................33Step 3: Create a Custom Pro  le..............................................................................................................................................35Step 4: Create a User...............................................................................................................................................................35Step 5:Test the Approval Process............................................................................................................................................36Summary.................................................................................................................................................................................38 Tutorial #6: Creating Reports and Dashboards...................................................................................................................................39Step 1: Add Reports and Dashboards to the Warehouse App.................................................................................................39Step 2: Create a Tabular Report..............................................................................................................................................39Step 3: Create a Summary Report...........................................................................................................................................42Step 4: Create a Matrix Report...............................................................................................................................................43Step 5: Create a Dashboard.....................................................................................................................................................45Summary.................................................................................................................................................................................47 i  Table of Contents   Tutorial #7: Adding Programmatic Logic with Apex..........................................................................................................................48Step 1: Create an Apex Trigger De  nition..............................................................................................................................48Step 2: De  ne a List Variable..................................................................................................................................................49Step 3: Iterate Through the List and Modify Price.................................................................................................................50Step 4:Test the Trigger...........................................................................................................................................................52Summary.................................................................................................................................................................................52 Tutorial #8: Adding Tests to Your Application....................................................................................................................................53Step 1: Create an Apex Test Class...........................................................................................................................................53Step 2: Add Test Methods to the Class...................................................................................................................................54Step 3:Write Code to Execute the Trigger.............................................................................................................................55Step 4: Execute the Test..........................................................................................................................................................56Step 5:View Code Coverage and Improve Tests.....................................................................................................................57Summary.................................................................................................................................................................................58 Tutorial #9: Building a Custom User Interface Using Visualforce......................................................................................................59Step 1: Enable Visualforce Development Mode......................................................................................................................59Step 2: Create a Visualforce Page............................................................................................................................................60Step 3: Add a Stylesheet Static Resource................................................................................................................................61Step 4: Add a Controller to the Page.......................................................................................................................................63Step 5: Display the Inventory Count Sheet as a Visualforce Page...........................................................................................64Step 6: Add Inline Editing Support........................................................................................................................................65Summary.................................................................................................................................................................................67 Tutorial #10: Creating a Public Web Page Using Sites.......................................................................................................................68Step 1: Create a Product Catalog Page....................................................................................................................................68Step 2: Register a Force.com Domain Name...........................................................................................................................70Step 3: Create a Force.com Site...............................................................................................................................................70Step 4: Con  gure and Test the Site.........................................................................................................................................71Summary.................................................................................................................................................................................72 Tutorial #11: Creating a Store Front...................................................................................................................................................73Step 1: Create a Controller......................................................................................................................................................73Step 2: Add Methods to the Controller..................................................................................................................................74Step 3: Create the Store Front.................................................................................................................................................75Step 4: Bonus Step — Updating the Page with AJAX..............................................................................................................77Summary.................................................................................................................................................................................78 ii  Table of Contents
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks
SAVE OUR EARTH

We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

More details...

Sign Now!

We are very appreciated for your Prompt Action!

x