Posts

Showing posts from July, 2015

ActionFunction and ActionSupport in Salesforce - When to use what?

Most of the newbies in Salesforce are confused regarding the usage of <apex:actionSupport> and <apex:actionFunction> tags. Lets take a brief overview about what they are and when to use what. <apex:actionSupport> - This component is used when you want to provide AJAX support to a another component. For example, on click of an image , we need to call an apex function. So, in between start tag and end tag of our image, we can put an action support component. We need to specify the javascript event, for example onclick event and the apex action which needs  to be called when this event happens.  <apex:page controller="ActionController">   <apex:form >       <apex:image url="https://login.salesforce.com/img/logo190.png">           <apex:actionSupport action="{!methodInApex}" event="onclick"/>       </apex:image>   </apex:form> </apex:page> public class ActionController {

Summer 15 Release Notes - Some exciting features

Here are some of the important features released in Summer 15 Release : Salesforce Lightning Lightning App builder is GA in summer 15 release. Lightning App are single page apps which are composed of Lightning pages. Lightning pages are responsive designed pages which consists of lightning components. 5 Standard components provided in this release - Filter, List, Recent Items, Report Charts, Rich Text and Visualforce page. Lightning connect Apex connector : Extend Lightning connect through apex code, access external data as you access any sObject present in your org. This will be useful where oData is not supported as a protocol. When you connect any external data source and subscribe to its data, an equivalent external object in created in your Salesforce organization. Currently you can access the data in read only mode and you cannot create reports and dashboards on external objects. We hope to get the reporting feature in next release from Salesforce. Lightning connect Sal

Search Nearby Places

Image
Overview of the application This application will read user's current location and based on user's input, it will display nearby places like ATM's, Banks, Restaurants, Hospitals etc. Below languages have been used in this app : HTML 5.0 to read user's current location (latitude and longitude). Javascript to get user's current address from his current location (latitude and longitude). Javascript and Visualforce to display user's current location on google maps. Apex: REST call to Google's nearby places API to get nearby places within a specified range. You can host this application on a Force.com site so that it can be accessed publicly. Code is uploaded @ GitHub Repo Steps to register for Google API Key :    Log in to the following URL using google account:         https://console.developers.google.com/project   Create a new project. Click on project, go to Api's (under APIs and auth). Click on Google Places API Web