Search

Quirky Apex

Developer related topics for the Salesforce.com platform

Category

Visualforce

A really useful plugin for hiding away all of the metadata XML files whilst you’re developing in Sublime 3 is ToggleExclude. Check out the package listing over on PackageControl.io to see how it can really help with helping you focus on the files which matter when developing.

https://packagecontrol.io/packages/ToggleExclude

Below is my configuration file for hiding away Apex class, Trigger, Visualforce Page, Visualforce Component and Lightning Component metadata files.

{
   "conditional_file_exclude_patterns": [
      "*.cls-meta.xml",
      "*.component-meta.xml",
      "*.page-meta.xml",
      "*.trigger-meta.xml",
      "*.cmp-meta.xml"
   ],
   "enabled": true
}

Lightning Design System & Visualforce

Visualforce got an update!

One of the coolest updates within the Spring ’17 release notes I found was the ability to now natively use the Lightning Design System directly inside Visualforce without needing to upload or reference a static resource.

Why is this cool? Simple. You don’t contribute to the overall limit of how much space your static resources take up and you benefit from always having the latest version of the Lightning Design System incorporated into your pages.

In this release Salesforce has added the new apex:slds tag.

Continue reading “Lightning Design System & Visualforce”

The under used String.format

As developers we are frequently capturing data from form input, validating and displaying errors back to the user when validation criteria are not met. Other times we have to create strings such as URL’s with dynamic parameter values or even queries with dynamic where clauses.

In this blog post I want to demonstrate a much better approach on how to create dynamic error messages or even other types of strings using the under used String.format method.

Continue reading “The under used String.format”

If you’re creating lots of Visualforce then this tool if for you! Emmet is an amazing tool for creating HTML quicker. It’s like autocomplete, but better!

http://emmet.io/blog/sublime-text-3/

Fast Visualforce!

Over the years I’ve created hundreds, if not thousands of Visualforce pages on Salesforce and I’ve learnt a lot on how to ensure users get fast responsive pages.

In this post I want to walk through some of my tips and tricks to speed up your Visualforce pages.

Continue reading “Fast Visualforce!”

Create a website or blog at WordPress.com

Up ↑