3. Agenda
• Visualforce Charting
• GeoLocation Field
• Load test data
• Developer Console
• SOQL Polymorphism
4. Visualforce charting
• Now its Generally available
• Types of Visualforce Charting
– Pie chart
– Gauge chart
– Bar chart
– Line chart
– Radar chart
– Scatter chart
5. • Simple to implement
• Customize your chart(change color,
appearances)
• Limits
– Can’t use in render as PDF/excel page
– Can’t use in visualforce email template
– Display Error in the browser java script console
7. GeoLocation field
• Generally available – Beta release
• Easy to calculate distances between two
Location using DISTANCES and GEOLOCATION
formula funtion
Distances(Geoloc_field__c,GEOLOCATION(value),”km/mi”)
8. Limits
• Counts toward your organization’s limits as
three custom fields
• Not available in reports, dashboards,
validation rules, Visual Workflow, or workflow
and approvals
• Cannot be searched
10. Load Test Data
• No need to write many lines in test method to
populate test data
• Create test data in a csv file and upload it into
static resource
• Use Test.LoadData method in the test method
12. SOQL Polymorphism(Pilot)
• It’s available as developer preview
• Just single query instead of multiple query
• Referenced object can be different type
• Eg:
– What field in Event object
13. Account
Name Phone Number Of Employees
Acme (212) 555-5555 680
Global Media (905) 555-1212 14668
Opportunity
Name Amount Close Date
Global Media – 400
40000.0 2010-02-28
Widgets
Acme – 1,200 Widgets 140000.0 2010-01-30
Acme – 600 Widgets 70000.0 2010-03-28
Acme – 200 Widgets 20000.0 2010-05-31
14. Event Record
Name of Account or Opportunity
Subject
referenced by What field
Acme Event Acme
Global Media Event Global Media
Global 400 Widget Event Global Media – 400 Widgets
Acme 600 Widget Event Acme – 600 Widgets
15. • Use “TYPEOF” in the SOQL query
SELECT Subject,
TYPEOF What
WHEN Account THEN Phone, NumberOfEmployees
WHEN Opportunity THEN Amount, CloseDate
END
FROM Event
16. Account.NumberOfEmp
Account.Phone or
Event.Subject loyees or
Opportunity.Amount
Opportunity.CloseDate
(212) 555-
Acme Event 680
5555
(905) 555-
Global Media Event 14668
1212
Global 400 Widget Event 40000.0 2010-02-28
Acme 600 Widget Event 70000.0 2010-03-28
17. Limits
• Not allowed in select clause of semi join
• Can’t be used in Bulk API
• Can’t use Count() /aggregate query
18. Developer Console
• Test Tool
• Query editor
• System log view
• Minor enhancement
1. Command line window
2. Keyboard Shortcut - CTRL+SHIFT+?
20. Other features
• Force.com Canvas(pilot)
• Environment hub(pilot)
• Salesforce for outlook panel
• Export Joined report
• Chatter poll
• Salesforce touch
Check the Winter’13 release notes to know more
about the other features
http://www.salesforce.com/customer-
resources/releases/