Sara Has No Limits

Good Programmers Evaluate, Simplify, Automate and Document

Google Charts and ASP.NET

MLSStats

I recently had the opportunity to redesign a very small web application that was used to display residential housing statistics. The previous application was created over 10 years ago and as you can imagine, now leaves a lot to be desired. It was an ASP.NET application that used many post back operations to render charts using a very limited 3rd party charting tool. It performed slowly and lacked a lot […]

Continue Reading →

Why a .NET Developer Loves Force.com

gbrarams

When I graduated from College 20 years ago, I had no idea how much would change in the world of Software Development. Back then, the college I attended taught students COBOL as the primary language (and yes, I realize that some people reading this will not even know what that is). It is lucky for me that I love learning new things. My entire career has been one VERY long […]

Continue Reading →

Book Review: Visualforce Development Cookbook

VisualforceDevelopmentCookbook

Not a book for beginners, but GREAT for seasoned Apex developers I recently had the honor of reviewing the recently published, Visualforce Development Cookbook. The code recipes are great and could really go far in demonstrating the potential of the platform. It is obvious that the author, Keir Bowden has implemented many, if not all of these recipes in real-world scenarios. However, I think this is a dangerous book for […]

Continue Reading →

Custom Components Not Rendering Properly

CustomComponentsShot1

After much searching, I have finally figured out what was causing two frustrating issues I have run into several times and thought I would share it with everyone. Both issues involve creating a Custom Component that includes HTML. If you use an iframe tag to reference an existing Visualforce page and do not include a certain switch in your URL, the component will not be rendered properly and instead of […]

Continue Reading →

Anatomy of a Great System Document and Why you should Bother

SystemDocTemplate

As a professional writer, I admit that I probably focus on documentation more than your average software developer. Over the years, I have learned quite a bit about what goes into making a GREAT system document. I have also noted the extreme lack of good quality system documentation at many of my client locations. Unfortunately, next to initial design and testing, documentation probably comes in last as far as the […]

Continue Reading →

Clean Code: Writing Code for Humans

CleanCode

I am a proud monthly subscriber of the online training website Pluralsight. I cannot imagine staying up to date in this field without that subscription. Since my blog focuses on Salesforce concepts, I will tell you that Pluralsight offers several brilliant courses that cover Salesforce. But, this post is titled “Clean Code: Writing Code for Humans” by Cory House, a brand new course just offered on Pluralsight. The course is […]

Continue Reading →

Proper Use of ActionStatus component

ActionStatusProblemCode

In preparation for the Advanced Developer exam, I have been painstakingly going page by page through the Visualforce Developers Guide (which can be found online here). Almost every single person that has passed the exam has suggested that you become intimate with this document, but I wonder how many people truly are. I keep finding that the code listed in the tutorials does not work as it should. My last […]

Continue Reading →

Setting Tab Order – Use TabOrderHint instead of TabIndex

In the last few days, I have been preparing for the Advanced Developer Certification by going page by page through the recommended Salesforce Developers Guide. I was shocked when I received an error trying to save a sample page using the code supplied in the online guide (page 39). The sample page involved setting the tab order for fields in a form and the code referenced an attribute named TabIndex. […]

Continue Reading →

Avoid Recursive Triggers with Static Variables

badrecursivetrigger

A lot of different things happen when a trigger is executed, which can cause trigger code to be executed more than once per transaction. For example, before and after triggers are executed twice if fields are updated based on workflow rules. Additionally, your trigger code may modify records, which can cause the trigger to fire again. For example, if the following code is executed it can potentially cause a CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY […]

Continue Reading →

More about Web Services and Unit Testing

HttpMockCallout

One of the limitations of Salesforce unit tests is that they do not make web service call-outs. So, how do you satisfy unit testing requirements for any apex code that does web service call-outs?  You have two options. Option 1: Programmatically generate a mock call-out In the following example, a class which implements HttpCalloutMock is used to create a fake response: Your unit test code will then invoke the test […]

Continue Reading →

Follow

Get every new post delivered to your Inbox.

Join 81 other followers