" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

How To Check The Object Accessibility On Visualforce Page

Posted on November 24th, 2015 by Puja Bhandari

If a user has insufficient privileges to view an object, any Visualforce page that uses a controller to render that object will be inaccessible. To avoid this type error, we should ensure that our  Visualforce components will only render if a user has access to the object associated with the controller. You can check for […]

How To Get Current Page URL In Apex

Posted on November 24th, 2015 by Puja Bhandari

Sometime we need to get current page URL in apex ,Then we need to use Apexpages.currentPage() methods provided by salesforce. There is following step which you need to follow: Step 1: First call ‘getHeaders()’ method which return a map of the request headers,where the key string contains the name of the header, and the value string […]

Apply Line Breaks In Help Text

Posted on November 24th, 2015 by Puja Bhandari

Salesforce provides a way to add help text in visual force page (same as standard) as:   <apex:pageblocksectionitem helpText=”write your help text”> <apex:outputText value=”Name”/> <apex:inputField value=”{!Account.Name}”/> </apex:pageblocksectionitem> But when you need to add new line character or line break inside this text e.g. You need to add muti line Help text defining the values of […]

How to fetch and display data from a custom object on VisualForce page in SalesForce.

Posted on November 23rd, 2015 by Smarjit Debata

As a beginner I face difficulties in SalesForce even when with simple problems like fetching data and displaying them on the VisualForce page. Now that I have some knowlede on it, I would like to share it. Let’s begin with how to fetch and display data from a custom object on VisualForce page. Code VisualForce […]

Display your custom VisualForce Page for standard New or Edit page of object from listview

Posted on November 23rd, 2015 by DEEPABALI BHATTACHARYA

Salesforce provides a list view with options for creating record,editing or deleting existing records for objects. For any object,at its list view clicking New will guide you to standard page for creating new record of that object. Same applies for Edit option also. But often we require our own visualforce page to show as New […]

Using AJAX Toolkit In Force.com Platform

Posted on November 23rd, 2015 by Smarjit Debata

Force.com platform provides a JavaScript API which provides features to work with sObjects using JavaScript without the help of Apex codes. Is it always necessary to write an apex class for every visualforce page we build ? Not really. Because we have an well built javascript API available in force.com platform I am sure this […]