Posts

Showing posts from May, 2013

Visualforce Charts with Javascript

Image
Hi All, This post talks about creating CUSTOM CHARTS in visualforce pages with javascript. There are multiple ways to show charts in visualforce pages, such as we could create a report, dashboard and map the image to visualforce page, or use google charts api, or we can use charts tag which is direct and dynamic. Requirement : Embed a chart which shows the salesrep the quarterly Targets and Booked. Solution : It is assumed that we already have the data with the following fields. Q1_Target__cQ2_Target__c Q3_Target__c Q4_Target__c Q1_Booked__cQ2_Booked__c Q3_Booked__c Q4_Booked__c Targets are set by the managers, and Booked are calculated using Rollup summaries on Opportunities. Now that we have the data, lets create a visualforce page with charts. There is this tag <apex:chart> to render data as charts. Please read this link for more information. create a VF page and run the following code. <apex:page standardController="Accoun

Deleting Unwanted Chatter Feeds, An Administrative Tip

Hi I am working on some things on my sandbox. There are system generated chatter feed published all over my page. It is not letting me delete when move my mouse over, so much for the system administrator profile  :). I started searching for answers, But I saw ideas not solutions. I thought of putting it here the workaround I did for myself. There are couple of ways and they are simple. Solution 1 : Logon to workbench, https://workbench.developerforce.com/login.php allow access. Go to SOQL Query, select UserFeed object. It lists out all the fields, select the ones u want to see, ID, Body, type etc., Execute the query. See the result and when u move the mouse onto the id, u can delete the records from the object. Solution 2 : your name>>developer console. There opens up a console window, it has all the tabs like Logs, Heap dumps,...,"Query Editor". Click on Query Editor, U can write an SOQL statement and execute it. Select a row from the query resul