JAVASCRIPT SALESFORCE Salesforce Customization Salesforce.com Visualforce

Pass the Picklist value in Javascript Onchange using Visualforce page

Pass the Picklist value in Javascript Onchange using Visualforce page Visualforce page use the below codes: <apex:inputField value=”{!Account.Status}”¬† onchange=”foo(this.id);” id=”AccStatus”/> Even better approach will be to send current element to JavaScript function rather than passing only id & then finding…

Read More
JAVASCRIPT SALESFORCE Visual Force Visualforce

Prepopulate visualforce apex:inputtext from URL parameter without using custom controller

Prepopulate visualforce apex:inputtext from URL parameter without using custom controller URL …/apex/MyVFPage?AccountName=TheBlogReaders.com AccountName in Parameter and pass the account value here is a the right solution for your problem using VF page and Javascript MyVFPage: <apex:page standardController=”Lead”> <apex:form> <apex:inputtext¬† id=”jsName”/>…

Read More
APEX SALESFORCE Visual Force Visualforce

How to Get the Logged in User Profile Name in Apex Class and Visualforce Page

How to Get the Logged in User Profile Name in Apex Class and Visualforce Page Source: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_userinfo.htm#apex_System_UserInfo_getProfileId getProfileId() Returns the context user’s profile ID. Id profileId=userinfo.getProfileId(); String profileName=[Select Id,Name from Profile where Id=:profileId].Name; system.debug(‘ProfileName::’+profileName); its possible to get the profile…

Read More
Ajax APEX Force.com SALESFORCE Salesforce.com Visual Force Visualforce

Ajax implementation with ActionStatus in visualforce page

Ajax implementation in visualforce page using ActionStatus Visualforce Page: <apex:page controller=”exampleCon”> <apex:form > <apex:outputText value=”Watch this counter: {!count}” id=”counter”/> <apex:actionStatus startText=” (incrementing…)” stopText=” (done)” id=”counterStatus” /> <apex:actionPoller action=”{!incrementCounter}” rerender=”counter” status=”counterStatus” interval=”60″/> </apex:form> </apex:page> Apex Class Controller: public class exampleCon {…

Read More
SALESFORCE Salesforce Certification Salesforce Interview Questions Salesforce.com Visual Force Visualforce

Date and Number Format using Visualforce Page

Date and Number Format using Visualforce Page <apex:page title="Date and Number Formatting in Visualforce Page"> <style> .tableContent { border: 1px solid green; font: 12px, Verdana; } .tableHeader { background-color: green; font: 16px, Verdana; color: white; } .bold { font-weight: bold;…

Read More
APEX SALESFORCE Visual Force Visualforce

Adding Error Message in the Visualforce page through Apex controller

Adding Error Message in the Visualforce page through Apex controller Syntax : <apex:pageMessages ></apex:pageMessages> Apex Controller: public class ErrorMsgController { public void DisplayError(){ Apexpages.addMessage( new ApexPages.Message (ApexPages.Severity.ERROR, ‘Required fields are missing. ‘)); //FATAL, WARNING, INFO, CONFIRM } } VF Page:…

Read More
SALESFORCE Salesforce.com

Salesforce.com Developer Workbooks

Salesforce.com Developer Workbooks below is the list of link in salesforce.com workbook tutorials, Force.com Workbook: http://www.salesforce.com/us/developer/docs/workbook/index.htm Visualforce Workbook: http://www.salesforce.com/us/developer/docs/workbook_vf/index.htm Apex Workbook: http://www.salesforce.com/us/developer/docs/apex_workbook/index.htm Database.com Workbook: http://www.salesforce.com/us/developer/docs/workbook_vf/index.htm Analytics Workbook: http://www.salesforce.com/us/developer/docs/workbook_analytics/index.htm ISVForce Workbook: http://www.salesforce.com/us/developer/docs/workbook_isv/index.htm Cloud Flow Designer Workbook: http://www.salesforce.com/us/developer/docs/workbook_flow/index.htm Security Workbook: http://www.salesforce.com/us/developer/docs/workbook_security/index.htm Service…

Read More