Archives

SalesIO JQuery Mobile Force.com Mobile Application

SalesIO is Force.com JQuery Mobile Iphone App provides all the functionality that a busy sales rep will need to easily manage their day to day lifes. SalesIO provide: Manage the basic Sales SObjects : Leads, Contacts, Accounts, Opportunities Manage the basic Support SObject: Cases Connect with customers using SMS and Email and Chatter Graphs at […]

Rate this:

Read More

Force.com FourSquare Visualforce Page

Set in visualforce page: var client_id = ‘YOURCLIENTAPPID’; var callback_url = https://.salesforce.com/apex/FourSquarePage Set in FourSquare App Setup Page: Redirect URL https://.salesforce.com/apex/FourSquarePage

Rate this:

Read More

Visualforce Lookup Field

I have seen that allot of people are struggling with creating lookup field in Salesforce. It is very easy by just referencing the child relationship id in an apex:Inputfield. See examples below: When using a standard controller in your page you can do the following: <apex:page standardcontroller=”Contact”> <apex:form> <apex:inputField value=”{!Contact.OwnerId}”/> <apex:inputField value=”{!Contact.AccountId}”/> </apex:form> </apex:page> <apex:page […]

Rate this:

Read More

Force.com Apex and Visualforce Best Practices

Triggers There should only be one trigger for each object. Apex Trigger Code trigger ContactTrigger on Contact (after delete, after insert, after undelete, after update, before delete, before insert, before update) { ContactTriggerHandler handler = new ContactTriggerHandler(Trigger.isExecuting, Trigger.size); if(Trigger.isInsert && Trigger.isBefore) { handler.OnBeforeInsert(Trigger.new); } else if(Trigger.isInsert && Trigger.isAfter){ handler.OnAfterInsert(Trigger.new); ContactTriggerHandler.OnAfterInsertAsync(Trigger.newMap.keySet()); } else if(Trigger.isUpdate && Trigger.isBefore){ […]

Rate this:

Read More

Visualforce JQuery DatePicker

Below is the code to implement a JQuery DateTime Picker in your Visualforce page: <apex:page controller=”PipelineV6_1″ sidebar=”true” showChat=”true” > <head> <apex:includeScript value=”{!URLFOR($Resource.JQuery1_8, ‘/js/jquery-1.8.0.min.js’)}” /> <apex:includeScript value=”{!URLFOR($Resource.JQuery1_8, ‘/js/jquery-ui-1.8.23.custom.min.js’)}” /> <apex:stylesheet value=”{!URLFOR($Resource.JQuery1_8, ‘/css/ui-lightness/jquery-ui-1.8.23.custom.css’)}” /> <script> var j$ = jQuery.noConflict(); j$(document).ready(function($) { j$(‘[id$=datepickerFrom]‘).datepicker(“hide”) j$(‘[id$=datepickerTo]‘).datepicker(“hide”) }); function callDatePickerFrom() { j$(‘[id$=datepickerFrom]‘).datepicker({dateFormat: ‘yy-mm-dd’}) } function callDatePickerTo() { j$(‘[id$=datepickerTo]‘).datepicker({dateFormat: ‘yy-mm-dd’}) } </script> […]

Rate this:

Read More

Apex Code: Visualforce Google Maps Customer Mapping

Create a Visualforce page to show all your customers addresses on Google Maps. Note there is a limit on the amount of Map pins that are set thus I created a timeout of a few seconds so Google does not show me pop-up an error message. <apex:page controller=”getCustomerAddress” sidebar=”false” showChat=”true”> <html> <head> <script type=”text/javascript” src=”https://maps.google.com/maps/api/js?sensor=false”></script&gt; […]

Rate this:

Read More

Apex Code: Visualforce Google Maps Address mapping

Account: Chuck Norris ~ salesforce.com - Enterprise Edition

Below is the code to display Google map of the Billing Address of an Account. Add the Visualforce page to your page layout. <apex:page standardController=”Account”> <head> <script type=”text/javascript” src=”https://maps.google.com/maps/api/js?sensor=false”></script&gt; <script type=”text/javascript” src=”https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”></script&gt; <script type=”text/javascript $(document).ready(function() { var myOptions = { zoom: 15, mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControl: false } var map; var marker; var geocoder = new […]

Rate this:

Read More

Visualforce Standard vs Custom Apex Chart

The Visualforce chart below is key to understand how customization and development work in Salesforce. Standard Behavior Custom Behavior Standard Look and Feel Application Framework and Default UI (Page Layout)Example: Standard Opportunity page with a default page layout. Page Layouts and Custom Apex ClassesExample: Standard Opportunity page that validates the opportunity stage. Custom Look and […]

Rate this:

Read More

Follow

Get every new post delivered to your Inbox.

Join 235 other followers