• Welcome
  • About
    • Leadership
    • Blogroll
  • Force-Squared Blog
  • Support
    • Knowledge Base
    • Log a Case
  • Is It Dreamforce Yet?
  • Welcome
  • About
    • Leadership
    • Blogroll
  • Force-Squared Blog
  • Support
    • Knowledge Base
    • Log a Case
  • Is It Dreamforce Yet?
  • Tips and Tricks
  • Configuration
  • Development
You are here: Home / Archives for Salesforce CRM / Development

PageReference Best Practice

May 5, 2011 by David Schach 2 Comments

I've seen a lot of coders put the following into their custom Visualforce controllers:
Java
1
2
3
4
5
6
7
8
9
10
public PageReference customsave() {
    try{
        insert acct;
    } catch (DMLException e) {
        /*do stuff here*/
    }
    PageReference acctPage = new PageReference ('/' + acct.id};
    acctPage.setRedirect(true);
    return acctPage;
}
I've decided that I don't like this approach. It feels too much like a URL hack, and though I'm sure that it will always work (meaning that salesforce.com will never change its way of referring to a record by
Java
1
/<recordID>
), […]

Filed Under: Apex, Development, Salesforce, Visualforce Tagged With: Apex

Filed Under: Apex, Development, Salesforce, Visualforce Tagged With: Apex

Chatter BINGO Released Into The Wild

March 25, 2011 by David Schach Leave a Comment

With Dreamforce 2010 behind us and Dreamforce 2011 fast approaching, the first ever crowdsourced conference application is publicly available! Chatter BINGO has been released as an unmanaged package, meaning that all the source code is open and ready for customizing to your hearts’ content. Chatter BINGO was conceived by Chris Shackelford and Brad Gross (@imperialstout) […]

Filed Under: Apex, Salesforce, Visualforce, X-Squared On Demand Tagged With: #df10, Apex, AppExchange, Just for fun, Visualforce, X-Squared On Demand

Filed Under: Apex, Salesforce, Visualforce, X-Squared On Demand Tagged With: #df10, Apex, AppExchange, Just for fun, Visualforce, X-Squared On Demand

Activity Type Field – Do Not Use

March 21, 2011 by David Schach Leave a Comment

The field Event.Type (which is sort of the same as Task.Type) is a difficult field to use.  Here are a few reasons: Type cannot be the controlling field for a dependent picklist. On an Event list view (/007), even when specifying record type, the Type field cannot be edited. Salesforce requires you to select a […]

Filed Under: Apex, Salesforce, Tips and Tricks Tagged With: Apex

Filed Under: Apex, Salesforce, Tips and Tricks Tagged With: Apex

Visualforce Inline Editing – I’m In Love

February 28, 2011 by David Schach 4 Comments

I’m totally addicted to the new Visualforce inline editing feature. It all started with this post by Josh Birk at Developerforce. I liked it, but as a “standardstylesheets” specialist, I wanted a bit more. Then I looked at the Visualforce apex:inlineEditSupport documentation, and I was hooked. Okay, so you’re probably wondering why this is so […]

Filed Under: Development, Force.com Platform, New Features, Salesforce, Tips and Tricks, Visualforce Tagged With: Apex, New Features, Visualforce

Filed Under: Development, Force.com Platform, New Features, Salesforce, Tips and Tricks, Visualforce Tagged With: Apex, New Features, Visualforce

System Replacement For isTest Apex Method

February 23, 2011 by David Schach 1 Comment

Sometimes we have to write code that executes differently if the Apex is being tested. For a great example, check out Scott Hemmeter's blog post on testing webservice callouts at http://sfdc.arrowpointe.com/2009/05/01/testing-http-callouts/. Scott's example works well, and he uses a Boolean
Java
1
isApexTest
, running certain code if this is true or false. I used to do something […]

Filed Under: Apex, Development, Salesforce, Winter 11 Tagged With: Apex, New Features

Filed Under: Apex, Development, Salesforce, Winter 11 Tagged With: Apex, New Features

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • …
  • 8
  • Next Page »

Is it Dreamforce Yet?

Find out!

Find us on the AppExchange

Mass Update Contacts Pro

Get It Now



Mass Update Contact Address

Get It Now


Recent Posts

  • Lightning Component With Running User Information
  • ChatterBINGO is Now Open-Source
  • Display Only My Role’s Records on a Report
  • Chatter Publisher Actions (Part 2): Object Custom Action
  • Chatter Publisher Actions (Part 1): Create a Record

Post Categories

Salesforce Blogs

  • Arrowpointe
  • The Silver Lining
  • MK Partners
  • Vertical Coder
  • Technology, Coding and Bears… OH MY!
  • Force Monkey
  • Embracing the Cloud
  • TehNerd
  • Decoding Salesforce
  • Salesforce Source

Popular Tags

#df09 #df10 Akismet Apex AppBuilder AppExchange Appirio Astadia Blogs Chatter Configuration Content DreamFactory Dreamforce Eclipse IDE Enterprise Force.com Builder Force.com Platform Google Infowelders Integration Just for fun Lightning New Developments New Features Partner Program PersonAccount Projects Publisher Salesforce Salesforce1 Salesforce for Google Apps sfdcverse Sites Visualforce Web-to X-Squared On Demand

Like Us on Facebook

Like Us on Facebook

Share This Page

Find Us Online

  • Twitter
  • Facebook
  • LinkedIn
  • Google Plus
  • X-Squared G+ Page
  • RSS

Subscribe

RSS Feed Comments

Subscribe via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,089 other subscribers

Copyright © 2008–2021 X-Squared On Demand · Genesis Framework by StudioPress · WordPress · Log in