Skip to content

Dave Helgerson

Salesforce Software Development and Consulting

Menu
  • Contact
  • Resume
Menu

Category: Development

Disable Visualforce Buttons When Processing – apex:actionStatus

December 27, 2013May 13, 2014

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 more
Categories: Apex / Development / Salesforce / Visualforce

Multiselect Picklists for User Search and Selection using Apex and Visualforce

December 9, 2013January 9, 2014

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 more
Categories: Apex / Development / Salesforce / Visualforce

Record ID and Data Retrieval from a VisualForce Controller Extension without a SOQL statement

November 26, 2013July 8, 2014

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
Categories: Apex / Development

Visualforce Help Text and a Popup Tool Tip

October 21, 2013March 16, 2014

Visualforce Field Help Text The help icon can be added to a Visualforce field within an apex:pageBlockSectionItem. Access the help text using the $ObjectType api. Put it in the helptext attribute of the apex:pageBlockSectionItem. {!$ObjectType.Account.Fields.Phone.InlineHelpText} Easy Hover Tooltip The following may help if you are not using the apex:pageBlockSectionItem. I’ve used this technique in the…

Read more
Categories: CSS / Development / Salesforce / Visualforce

Define and Initialize a Map, List, and Set in Apex

October 20, 2013March 11, 2020

The syntax for defining a list, map, and set collection with initial values sometimes slips my mind. The lack of () throws me off, so this post is to help out my future self. List Definition public list MyList = new list {‘AAA’, ‘AAA’, ‘BBB’, ‘BBB’, ‘CCC’}; Set Definition public set MySet = new <set>{‘A’,…

Read more
Categories: Apex / Development / Salesforce
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next
Super Clone Pro
© 2023 Dave Helgerson | Powered by Minimalist Blog WordPress Theme
 

Loading Comments...