Below is a simple example of retrieving Account records using Salesforce Remote Objects. I imagine the paging functionality could be better, but it works to show how the offset property can be conditionally added to the query parameters JSON Object.
Read moreCategory: Salesforce
Salesforce Describe Methods – Record Types, Fields, and Global Describe
Record Type Describe Getting an object’s record type Id is simple with the statement below, and it avoids using a SOQL statment on the RecordType object. However, the method name is misleading because getRecordTypeInfosByName actually retrieves the record type with the Label and not the Name. Also, be careful because the name is case sensitive….
Read moreIn-line Editing Visualforce Component for Any Object
This is a Visualforce component for in-line editing of an object’s child or related records. It will work for most Salesforce standard and custom objects. Pass in parameters to change what is displayed and if the user can add, edit, or delete records. Required Parameters aParentRecId: Parent Record Id. This is used to select the…
Read moreVisualforce Table with Alphabet Filter and Sortable Columns
This Visualforce page contains apex:pageBlockTable to demonstrate a few different concepts. Sortable Columns in an apex:pageBlockTable Alphabet Filter that filters on the current sorted column Use of the ApexPage StandardSetController Selecting an individual record in the table using a link Selecting multiple records with a column of checkboxes using a Sub Class(Wrapper Class) to hold…
Read moreDisable Visualforce Buttons When Processing – apex:actionStatus
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