Category Archives: Javascript

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 »

SOQL Datetime literal in javascript for current Datetime.

By | April 19, 2017

Sometimes we need to use AJAX toolkit to do some SOQL/DML on Data from a custom button, which executes javascript. Here in this post we will just get current Datetime and then we will create datetime literal as per SOQL standard to fetch some records as per requirement. For more information about SOQL date/datetime formats Click… 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 »