Category Archives: Visualforce Page

Using Variable for Static Resource

By | September 7, 2017

Did you ever came across such requirement, when you have your static resource name in a variable and you have to use that variable to access static resource on your visualforce page. Lets see Using Variable for Static Resource. Lets understand this with an example. We have 3 static resources for 3 colours Red, Yellow… Read More »

setTabIcon in Service Console is not showing full icon/image.

By | May 25, 2017

Recently I came across service console in Salesforce, Where I need to show the tab Icon for a custom visual-force page. There is a standard method setTabIcon() , which we can use to set the tab icon. This method works fine if we have image/icon of exactly 16*16 px. But if our image/icon is larger, than its… Read More »

Datetime on Visualforce Page

By | February 19, 2017

Whenever we are working with datetime on visualforce page, we may face some issue either with its formatting or its value not coming correctly. So basically the formatting of date depends on the locale of the user, and second thing which is its value depends on the timezone. In the salesforce database each datetime value is… Read More »

Apex:actionRegion not working with Apex:actionFunction

By | January 28, 2017

One of my friend was using apex:inputFile on a Visual force page, and he also needs to reRender some information on the same page. If we need to use both together, we have to use apex:actionRegion in order to isolate apex:inputFile (because inputFile doesn’t support reRender and throws error). He was also doing the same thing… Read More »

Disable Inline Editing on Apex:EnhancedList through jquery script

By | January 11, 2017

Sometimes we don’t want to keep inline editing on the apex:enhancedList, and unfortunately there is no standard way to disable inline editing. But there is always a solution for , not a standard way but we can say workaround to fulfill the requirement. Here is the jQuery code snippet which can be put in a… Read More »