Monthly Archives: October, 2013

Salesforce LinkedIN Integration

Herein comes the Integration with Salesforce. We had a requirement to retrieve some information from LinkedIN and display them within Salesforce. LinkedIN provides an API for that. We used that API and retrieved information with the help of that. First of all we have to create a new application in LinkedIN HERE . In this application …

Continue reading

How to display Locale Formatted DateTime in Visual force.

I have faced an issue when I display dateTime fields value in visual force page with apex:outputText ,it’s give the different format from the salesforce format . For Account,I have displayed created date then it gives:  Wed Jul 10 11:11:33 GMT 2013     instead of   ‘7/10/2013 4:11 AM’. this is different from the format …

Continue reading

Some times, Why can’t we do inline editing in a List View?

I’ve got a custom object with a number of different record types. In the ListView I’m displaying a checkbox which I’d like to be able to check/uncheck inline since it would be so much quicker. I have enable the Inline Edit for my organisation ,unfortunately It was not working. I was not sure what else …

Continue reading

How to get the Recordtype Id using Dynamic Apex

Normally We can get the RecordtypeId for any sObject by using SOQL But it will count against your SOQL limit Below method will bypass the need of SOQL Query Governing LIMIT.

Continue reading

UI trick : How to fix the width of image displayed via rich text area field.

Salesforce provide it’s standard CSS for each component, when we use that component in Visual Force pages then each component has their own look and feel due to the standard CSS. Sometimes we wants some changes on CSS,but unfortunately our CSS does not work, So what is the solution ? At that time we need …

Continue reading

Calculate the number of days between two dates while excluding weekends.

This is the post regarding how to calculate working days excluding weekends( sat and sun). Sometimes we need to count the working days or leave of any employee excluding the weekends,then we need to write code for same. Actually it is not a difficult task,because salesforce provide the pre built methods of date.And we need …

Continue reading

Dynamic report used in visual force

Salesforce provides the facility to create reports of various type.In salesforce environment we can easily access the report tab,it provides access to a set of predefined reports, all of the reports that you create, and the reports in folders that you can access. But the reports are static i.e filter criteria are specified at design time.which can’t …

Continue reading

Visualforce page that renders as PDF ,when a button is pushed/clicked.

Some times we may need Visualforce page that renders as PDF ,when a button is pushed/clicked. There is few ways to do this Place a Button on VF page , then on action method of this button, redirect to a similar VF page having “renderAs=pdf”.(It is working) But why should we need similar VF with …

Continue reading