Mindblown: a blog about philosophy.

  • Salesforce: Accessing Field label of object in VisualForce page

    In VFPage one can directly access the label of any particular field of sObject. In future if the label is changed in the sObject, same will be reflected in the VFPage. For Example: <apex:column title=”{!$ObjectType.OpportunityLineItem.fields.Quantity.label}” headerValue=”{!$ObjectType.OpportunityLineItem.fields.Quantity.label}” width=”50px”> It also avoids hard-coded labels and make it more flexible.

  • Error: ‘google’ is undefined in IE8

    While using the Google Api forOrg chart generation I came across the error “‘google’ is undefined” when i was testing it in IE 8 browser. The same code was working fine in Mozilla FireFox . Google the error was not able to find solution.  After lots of searching fixed it by doing a small one character change…

  • Salesforce: Force.com Free Edition

    What is included in Force.com Free Edition? Users                                                               100 Custom App Per User                          1 Custom Objects Per User                                 Up to 10 Storage                                                            1 GB Logins                                                  Unlimited Sites page views                                               250,000 per month Developer Sandbox                                          Included Offline                                                  Included Web sites                                                         1 site Web sites pages views per…

  • Salesforce: SF:INVALID_SESSION_ID

    I was constantly getting exception when I tried to use the “/soap/ajax/15.0/connection.js” in the VF Page. JavaScript throws following exception:- {faultcode:’sf:INVALID_SESSION_ID’, faultstring:’INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session’, detail:{UnexpectedErrorFault:{exceptionCode:’INVALID_SESSION_ID’, exceptionMessage:’Invalid Session ID found in SessionHeader: Illegal Session’, }, }, } The exception was resolved when I added following statement before using the “sforce.connection”…

  • C# : Converting DateTime to format YYYY-MM-DDThh:mm:ssZ

    I found that lots of people were searching to convert the datetime into the universal format. Following can be used for the same. myDateTime.ToString(“u”) OR string strDate = DateTime.UtcNow.ToString(“yyyy’-‘MM’-‘dd’T’HH’:’mm’:’ss’Z’”, DateTimeFormatInfo.InvariantInfo); The custom format string is “yyyy’-‘MM’-‘dd HH’:’mm’:’ss’Z’”.

  • Regex for AlphaNumeric password validation

    Regular Expression for validating the string (?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,20})$ The above RegEx requires at least one digit, at least one alphabetic character, no special characters, and from 8-20 characters in length.

  • Salesforce.com: What is Cloud Computing?

    [youtube=Salesforce] Awsome explanation of Salesforce working!

  • Salesforce Flex: “Error #2032: Stream Error. URL: “

    I came across the Error #2032 exception when I was trying to embed the swf file uploaded to static resources of the Salesforce instance. I searched it on the developer.force.com as well as google it around but didn’t find any solution. but after that i realised that the swf file is unable to find the…

  • Salesforce : Converting DateTime to format YYYY-MM-DDThh:mm:ssZ

    I spend lots of my time finding a solution for converting the datetime into the format (YYYY-MM-DDThh:mm:ssZ) so that it can be used in SOQL query.  SOSL query returns the datetime in format(YYYY-MM-DDThh:mm:ssZ) so for comparison one need to convert it into that format. System.debug(DateTime.now().format(‘yyyy-MM-dd\’T\’hh:mm:ss\’z\”)); I hope this will save your time. 🙂

  • Google Docs will allow to store and update all types of file

    Google Docs will be supporting all types of the file uploads upto size of 250MB. Overall it will provide upto 1GB space. This will bring down the various problems which occurs during sending mails with large attachments. Google says This makes it easy to backup more of your key files online, from large graphics and raw…