Category: Technology

Salesforce Chatter for Android

June 6th, 2010, 3 Comments

My blog has been a little quiet since I left for Google IO a few weeks ago and this is primarily the reason why. In addition to my day job I’ve been working on getting up-to-speed on Android development. Google sent me a Droid about a month before the conference and I started playing around [...]

WaveMaker’s IDE for the Cloud

June 4th, 2010, No Comments

Yesterday at Appirio we had a private demo of the WaveMaker platform from the guys at WaveMaker. I’ll try to recap most of the things that I heard as it pertains to Salesforce.com and vmforce but for more details you’ll want to check out their website. The WaveMaker platform allows you to build applications that [...]

Testing Salesforce.com Controller Extensions

June 2nd, 2010, 1 Comment

One thing that salesforce.com is working on is providing developers with a better testing environment. Salesforce.com requires you to write test cases to deploy your code to production but sometimes the process can be painful. Given the lack of something like jUnit you have to implement your own setup and test procedures. You’ll need to [...]

Java Command Line App Using the Salesforce WSC

May 17th, 2010, 3 Comments

The Force.com Web Service Connector (WSC) is a high performance web services stack that is much easier to implement than the “tried and true” Force.com Web Services API. Here’s a quick command line app you can use as a starter application. This class simply creates a new Account and then queries for the 5 newest [...]

Uploading an Attachment using Visualforce and a Custom Controller

April 28th, 2010, 3 Comments

This is a follow up post to Uploading a Document using Visualforce and a Custom Controller showing an example for uploading an attachment for a Contact. The Visualforce page and Controller is very similar with a few exceptions. Attachments are different than documents and are only available for the following objects: Account Asset Campaign Case [...]

Create a New Record in Force.com Sites

April 27th, 2010, 4 Comments

So someone asked me yesterday for some code to allow external users to create contact records in Salesforce.com. They needed a simple form where people could enter the details and once submitted receive a confirmation of what information was entered. Here’s what the final page that was developed looks like. You can try the code [...]

Uploading a Document using Visualforce and a Custom Controller

April 22nd, 2010, 3 Comments

The Salesforce docs for the inputFile Visualforce component has an example of uploading a document using the Standard Controller. Here is a quick example of using a Custom Controller in case you want to make the upload process part of a larger transaction. Make sure you take a look at the finally block in the [...]

Enforcing Apex Security With Sharing Keywords

April 21st, 2010, No Comments

Security is a major foundation of the Force.com platform. Not only is security available declaratively but it is also baked into the Apex language itself. Most Apex scripts run in system context without respect to the current users permissions, sharing rules and field level security. This ensures that triggers and web services have access to [...]

Using AggregateResult in Salesforce.com SOQL

April 12th, 2010, 3 Comments

In Spring ‘10, Salesforce.com released new Apex functionality for aggregate functions in SOQL. These queries return an AggregateResult object which can be somewhat confusing at first. I’ve noticed quite a people searching my blog for this topic so I thought I’d throw some examples together. So the functions count(fieldname), count_distinct(), sum(), avg(), min() and max() [...]

Easily Search and Edit Records with Visualforce

April 7th, 2010, 10 Comments

I tend to over think Visualforce development sometimes and make it harder than it should be. Development with Force.com is surprisingly easy, elegant and quick. For example I recently needed to develop a way for the users to search for records and update specific values. Users should be able to search for records by keyword [...]

Feed

http://blog.jeffdouglas.com / Technology

WordPress Appliance - Powered by TurnKey Linux