November, 2009 Archive

Salesforce AJAX Toolkit Shell

Came across something tweak toolkit installed and accessible right inside of any Salesforce.com Org. Access Salesforce AJAX Toolkit Shell @ http://instanceName.salesforce.com/soap/ajax/17.0/debugshell.html. Enter the instanceName, such as na1, for your organization. You can see the instanceName in the URL field of your browser after logging in to Salesforce.com.

Salesforce – Date (Calendar) Picker in VisualForce

In general it is a bad idea to use any of the javascript calls that references any standard app features.  These can and do change frequently and might have side effects that are hard to track down. To get the datePicker the best solution right now is to use inputField and then use an empty [...]

How do I escape ampersands in batch files?

Q: How do I escape ampersands in a batch file (or from the Windows command line) in order to use the start command to open web pages with ampersands in the URL? Double quotes will not work with start; this starts a new command line window instead. ‘&’ is used to separate commands therefore you can [...]

Salesforce – Know-How : Anonymous Block

Unlike classes and triggers, anonymous blocks execute as the current user and can fail to compile if the script violates the user’s object- and field-level permissions. So, essentially, it is only allows the user to do what they could through the API. if you don’t have CRUD for delete on Account, you can’t delete Accounts [...]

Datasea – Human-like reasoning to find Data Relationships

DataSea is software that tells you about things. Ask it about X and it tells you about X, instead of finding hits with ‘X’ in them. Ask it about X from the point of view of Y, and it will tell you about X and Y, and also things which form connections and relationships from [...]

Executing JavaScript on page load

Following code helps you to define any JS function to be called on page load. The tricky part of the code is that it waits until page is completely loaded. <script> function init() { alert(‘Loaded’); } var previousOnload = window.onload; window.onload = function() { if (previousOnload) { alert(‘…loading …’); previousOnload(); } init(); }</script>