It is very handy to disable buttons after they have been pressed. This lets the user know that the button was in fact pressed, and it prevents the button’s action from being executed multiple times. The Visulforce component apex:actionStatus gives us an easy way to accomplish this. Here are some things to take note of…
Read moreAuthor: daveh
Eclipse Force.com IDE – Indent and Beautify Apex Code
Eclipse doesn’t currently offer an option to beautify Apex code. Sorry about the trick title. However, I will describe techniques that will help you clean up your code’s indentation. Neither way is perfect, but they have helped me make my code more readable. In the meantime, vote up this idea for the enhancement. Method 1:…
Read moreVisualforce Datepicker Manipulation and Day of Week Display
Hide the Datepicker Link for the Current Date {!BirthdateDOW} {!StringDateDOW}
Read moreMultiselect Picklists for User Search and Selection using Apex and Visualforce
Below is a component that will allow you to search and select Users. It was created to mimic the experience of selecting multiple users in the Task creation window. However, it would be easy to change the reference from the User object to almost any other object. An initial list of selected users can be…
Read moreRecord ID and Data Retrieval from a VisualForce Controller Extension without a SOQL statement
Retrieve field data for a record using the Standard Controller object in a Controller Extension class public with sharing class MyController {. Account MyAccount; Id MyId; public MyController(ApexPages.StandardController controller) { list MyFieldList; // get the record // passing a list of field names to the standard controller will cause // the standard controller to retrieve…
Read more