• 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 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

Trigger to help Salesforce for Twitter

October 6, 2009 by David Schach Leave a Comment

Salesforce for Twitter is one of the best AppExchange packages I've seen. It fulfills the promise salesforce.com made to bring the Service Cloud to all orgs of all sizes. And it works well. Though a supplemental/unofficial guide to customizing SFDC for Twitter will be released soon on this site, I wanted to share a trigger I just wrote to add new Leads to a campaign:

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

A Mention in the Developers Challenge

October 2, 2009 by David Schach Leave a Comment

The salesforce.com Developer Force Challenge has concluded, and the team of Force Squared and The Enforcer won a mention! Our Daily Shinro site was listed “for sheer exuberance!” I’m really proud of the site, though the lion’s share of the kudos go to John for the concept and site design. I just coded whatever he […]

Filed Under: Development, Salesforce, X-Squared On Demand Tagged With: Apex, Force.com Platform, Sites, Visualforce

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

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

The Ultimate Visualforce Events Tab – Almost

January 5, 2009 by David Schach 5 Comments

Check old blog posts, and you’ll see that I’ve been working on custom Events and Task tabs for a while now. A Task Visualforce tab (that mimics the Task box on the Home Page) is almost ready to come out, but the Events Enhanced List tab is (pretty much) here! This bears emphasizing: Enhanced Lists […]

Filed Under: Configuration, Salesforce, Visualforce, Winter 09 Tagged With: Apex, Force.com Builder, Force.com Platform, Salesforce, Visualforce

  • « Previous Page
  • 1
  • 2
  • 3
  • Next Page »

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...