• Home
  • About
    • Leadership
    • Partners
    • Blogroll
  • Force-Squared Blog
    • Tips and Tricks
    • Configuration
    • Development
  • Support
    • Knowledge Base
    • Submit a Case
  • Is It Dreamforce Yet?

X-Squared On Demand

Salesforce solutions delivered

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

Sophisticated DateTime “Formula Fields” with Apex and Field-Level Security

May 17, 2010 by David Schach 3 Comments

What do you do when you want to calculate a formula-like field but a regular formula won't work? Salesforce CRM's formulas handle dates very well. If you want to enter a date value and have formula fields display, for instance, mydate__c + 21 days, that's simple. Just use mydate__c + 21. Side note: If you […]

Filed Under: Apex, Configuration, Development, Force.com Platform, Native Application, Salesforce, Salesforce CRM, Tips and Tricks Tagged With: Apex, Eclipse IDE, Force.com Builder

New Developer Library Released

November 19, 2009 by David Schach Leave a Comment

Today, Developer Force (http://developer.force.com) released its new library. Here are a few of them. All can be found at http://wiki.developerforce.com/index.php/Documentation. Workbook http://www.salesforce.com/us/developer/docs/workbook/index.htm Fundamentals http://www.salesforce.com/us/developer/docs/fundamentals/index.htm Cookbook http://www.salesforce.com/us/developer/docs/cookbook/index.htm Apex Advanced Code Example http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_shopping_cart_example.htm https://sites.secure.force.com/appexchange/listingDetail?listingId=a0N30000001saDCEAY And many more to come!

Filed Under: Apex, Development, Force.com Platform, New Features, Salesforce, Visualforce, Winter 10 Tagged With: #df09, Apex, Force.com Platform, Salesforce

Overload Apex Class to be Controller AND Extension

July 24, 2009 by David Schach 2 Comments

Coding the new premium version of Mass Update Contacts (details to come), I replaced the two parts of the page with Apex Components. This will allow the app to support custom address fields and international address formats. I didn't want to write one ControllerExtension for the main page, a CustomController for the view section component, and another CustomController for the pageblocktable component. So here is the overloaded class constructor. Note that this works because an extension passes the StandardController to the constructor, and a CustomController passes nothing:

Filed Under: Apex, Development, Visualforce, X-Squared On Demand Tagged With: Apex, Eclipse IDE, Force.com Platform, New Features, Projects, Visualforce

Email Inbox Version 2

July 15, 2009 by David Schach 1 Comment

Well, it took about ten minutes from the release of Email Inbox Version 1 for people to request additional features, screenshots, etc. Version 2 includes some neat icons, and this post has the multiple-times-requested screenshots we promised. First, a teaser screenshot. (There's a better one below the code.) Here's the updated Visualforce code: The Apex […]

Filed Under: Apex, Development, Salesforce, Visualforce Tagged With: Apex, Projects, Visualforce, X-Squared On Demand

Visualforce Email Inbox

July 14, 2009 by David Schach 4 Comments

Sonny Cloward, SysAd at Rainforest Alliance, approached us about writing a Visualforce page to display all incoming emails for a given Case Queue. This led to quite a few interesting discoveries. Here's how we handled the project:

Filed Under: Apex, Development, Salesforce, Visualforce, X-Squared On Demand Tagged With: Configuration, Projects, Visualforce

Checkbox Formula Field in Visualforce

May 21, 2009 by David Schach Leave a Comment

In keeping with the theme of checkboxes and formulas, we provide an easy way to create a checkbox formula field using Visualforce: the checkbox tag with the disabled attribute:

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

Pulling Code Out of Triggers

May 18, 2009 by David Schach 6 Comments

To date, triggers have only been accessible on each object's setup page, leading to a lot of hunting for code within the Salesforce CRM application. Even in Eclipse, switching between the Class and Trigger folders for a given project can be a pain. These pains can partially be alleviated by keeping all Apex code in one place--as Apex Classes. Read more: http://www.x2od.com/?p=583&preview=true#ixzz0FncHsqPw&B

Filed Under: Apex, Development, Salesforce, Summer 09 Tagged With: Apex, Eclipse IDE, Force.com Platform

Hacking a Case Comment Trigger

April 1, 2009 by David Schach 8 Comments

There has been some chatter about asking the salesforce.com team to include the CaseComment object in the “triggerable” list. After conferring with JP Seabury (ForceMonkey), we designed a Rube Goldberg-esque solution to the problem.

Filed Under: Apex, Configuration, Development Tagged With: Apex, Configuration, Force.com Builder, Force.com Platform

Project: Lookup to Picklist

November 11, 2008 by David Schach Leave a Comment

In the first installment of post-Dreamforce projects, I present a mechanism to present the user with all available Lookup options in a picklist. This should simplify some Visualforce pages. (Credit to the Developers Guide from the new post-Dreamforce Library.) The key to the code is the ability to customize the SOQL statement to focus as […]

Filed Under: Apex, Visualforce Tagged With: Apex, Configuration, Dreamforce, Projects, Visualforce, X-Squared On Demand

Apex – The Basics

October 1, 2008 by David Schach 1 Comment

Jon Mountjoy has written another super post over at developer.force.com. This one is titled An Introduction to Apex. It goes through some of the basics of the language and provides some examples. Everyone should read this; beginners will get a better orientation than otherwise available, and experienced Apex developers will probably also learn a thing […]

Filed Under: Apex, Development Tagged With: Apex, Force.com Platform, Salesforce

  • « Previous Page
  • 1
  • 2

Is it Dreamforce Yet?

Find out!

Find us on the AppExchange

Mass Update Contacts 2.0

Get It Now

Recent Posts

  • Prevent Duplicate Emails on Leads
  • Duplicate Record Item Enrichment and Auto-Deletion Code
  • Lightning Component With Running User Information
  • ChatterBINGO is Now Open-Source
  • Display Only My Role’s Records on a Report

Post Categories

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

Find Us Online

  • Twitter
  • Facebook
  • LinkedIn
  • 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 164 other subscribers

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

 

Loading Comments...