Category: VisualForce

  • Creating multiple tabs for same Salesforce Object

    Many time I have seen Salesforce Admins wants multiple tabs for same object depending upon the RecordTypes or some other criteria like separate tabs for Premium Account, Gold Accounts and Silver. Indeed they can create multiple views and use the picklist and use “Go” button. But it has disadvantage like multiple clicks, not that user…

  • Showing the Processing/Loading image

    I came across a good code sample while surfing for showing the Loading/Processing  image on the VisualForce Page. You can find it at: http://force.siddheshkabe.co.in/2009/10/displaying-please-wait-ajax-animation.html

  • 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.

  • 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”…

  • 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…