Visualforce

Expose your lightning components in a visualforce page

As winter 16 got into every Salesforce environment. It has brought new exciting features in lightning development and experience.

Lightning components are getting better every new release. Lets look at one of the interesting feature that winter 16 has given in the hands of developers ie., expose your lightning components in a visual force page.

Apex Exception Email to defined user

Apex Exception Email is going to, or released in winter 16 according to time you are reading this post.

What is Apex Exception Email:
    Before winter'16 when an Apex code encounters unhandled exception it sends the exception email to LastmodifiedBy user email address of the class or trigger.But now we can specify which user should receive the exception email.

Compound condition in visualforce

As a Salesforce developer most of the times we have encountered with rendering a block or field based on a compound condition ie., rendering a field or block based on values in different controller variables. 

This little snippet will tell you how to add a compound (multiple ) condition in a Visualforce page.

 

Redirecting to standard New,Edit,View and clone without removing override

Hi All,

I hope this post will save some time for Developers and Admins . The title may sound complex but its as simple as eating a chocolate. Most of the Salesforce geekys know Salesforce actions like creating new record,editing a record and cloning etc are based on URL and component Id.

Lets take Account object. I have to overrode the account view with 'AccountView' visualforce page.

Use bootstrap in visualforce page

Hi All,

This is a simple post which covers how to add and use bootstrap css in your Visualforce page.

There are some bootstrap related posts which you can read it here.

You will get to know how simple it is to achieve this after reading this post.

Steps to follow

  1. Add bootstrap css
  2. Use bootstrap css in Visualforce page

Add bootstrap css

You can add the bootstrap css in two ways 

View/Open a file in Document Object

Hi Folks

This post will help you to view or download (if its a word doc) a file in Visualforce page from the Document objects.

I had a requirement that when i click on a link in Visualforce page, it should open a file from Document Object in new tab. For example - Click on Terms&Conditions link. 

Follow the steps to do this:

Step 1: Add a pdf file in Document Object in Salesforce Org. For Eg: Add a pdf file in Document Object in the name of Terms And Conditions.