Salesforce Integration

DML before Apex Callouts using Salesforce AJAX

You all might have encountered a situation where you want to update/create/delete a record (i.e, perform a DML operation) and based on it’s output would like to then make a Web Service call (may be passing some values from the previous DML operation). While doing so you would have seen an error being thrown as… Continue reading DML before Apex Callouts using Salesforce AJAX

Apex/VisualForce

StandardSetController

StandardSetController objects allow you to create list controllers similar to, or as extensions of, the pre-built Visualforce list controllers provided by Salesforce. In this tutorial, I am going to cover the tabbed pagination using the functionality of StandardSetController. In the below code – I have created 2 references of the set controller one holding the… Continue reading StandardSetController

Salesforce Integration

Salesforce Apex Callouts using REST

Salesforce provides an easy way of making an external Web services call from your Apex and the mechanism is called Apex Callouts. Apex provides integration with Web services that either utilize SOAP and WSDL or HTTP (RESTful) services. In this article I will be using the REST option to invoke a web service. As a refresher, REST (Representational state transfer)… Continue reading Salesforce Apex Callouts using REST

Apex/VisualForce

learning ‘apex:actionSupport’

<apex:actionSupport> is a standard VisualForce component that adds AJAX support to another component, allowing the component to be refreshed asynchronously by the server when a particular event occurs, such as a button click or mouseover. For example, the commandButton component has the inbuilt AJAX support but others such as outputText component does not have – so… Continue reading learning ‘apex:actionSupport’