• jlo
  • NEWBIE
  • 314 Points
  • Member since 2005

  • Chatter
    Feed
  • 12
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 76
    Replies

We are currently trying to develop an application on VF where we need to embed charts in PDF. Wanted to see if any one had tried it before or forsee any issues with it.
I had found the following article regarding charts and VisualForce

http://wiki.developerforce.com/index.php/Google_Visualizations

Girish

Principal

CM-Focus LLC

 

 

Our app uses a number of Visualforce "snippets" that are placed into the page layouts of Contacts, Leads, and Accounts.  These chunks of Visualforce provide related list-like functionality with a couple extra bells and whistles.

 

Lately, our customers have been noticing some severe slowdowns on pages with those Visualforce components.

 

I've also reproduced the issue a number of times myself, both with Debug Logging turned on & with it turned off.

 

For example, I went to view one of the Accounts in our EE org.  The actual queries that the Apex controller is executing should take at most 2 seconds (I've timed this extensively from the command line).

 

However, the first time you try to view an Account, I've seen the page take over one minute to load. I've even seen the whole page *timeout* (after 130 seconds), so nothing (not even the normal stuff, let alone our Visualforce chunk) is visible.

 

Subsequently reloads of the same page take about 5 or 6 seconds - still too long, and still a significant penalty above the raw query time that the Controller needs:

 

 

I have a couple questions:

 

a.  How do the Salesforce Appservers cache Visualforce code?  This pattern seems to me like the individual Appserver that is handling my request has to go get the code for my visualforce page and then compile it, and then cache it, and this causes the periodic huge slowdown.

 

b.  Considering that Visualforce page chunks are embedded in the page layout as an IFRAME, why would they be a gating factor for the rest of the page?

 

 

As far as I can tell, when a browser requests a page that has Visualforce in it, the appserver notices the Visualforce bits and starts running them and *blocks* the entire rest of the page delivery until the Visualforce part is done (and cached, so when the browser actually makes the IFRAME request it gets the answer back quickly).

 

This seems like a premature optimization which is getting an unintended result.  If a small chunk of Visualforce is slow, it ends making the entire page useless rather than simply having a part of the page load a bit slower than the rest. (after the rest is visible & completely useful).

 

Especially when we're seeing these occasional 2 minutes "something's not in cache / gotta compile your page" issues, it makes the use of Visualforce components in standard page layouts a dicey proposition or maybe a bad idea entirely.  Which is especially rough, considering our App has been out for 2 years and hasn't had this problem before.

 

Can anyone at Salesforce comment on this?

Message Edited by jhart on 02-13-2010 10:47 PM

Hi all, 

 

I wonder if anyone knows when the updated GUI will be released? Our app shows the Spring '10 ladybug, but the GUI still reflects the original (old) environment. Wasn't one of the updates a new/refreshed GUI?  

 

Thanks!

--Dave 

How do you navigate to a specific top-level (standard object or custom object) tab from Apex? Not to a specific instance of an SObject, but to the top-level tab/list.

 

Thanks!


Dave

 

Hi,

Is it possible to have a VF page with click to dial using Skype. If yes, can someone please guide me through the process.

As an OEM Embedded ISV partner, we are supposed to prevent end users on our Force solution from accessing the standard CRM components  -- and access to the CRM components and the App Exchange can be a bit confusing for a true OEM end-customer who does not always associate our app with Salesforce.

 

Is there a way to keep the standard SFDC header with std tabs & our custom logo--yet remove the Force.com logo and the app drop down list on the right hand side of the screen?

 

From reading resources, it seems this can be done with Visualforce but looks like an all or nothing effort meaning that VF pages would have to be created to re-create all of the standard page functionality...with new logo/image changes.

 

I know VF can drop the standard header using the showHeader='false' but is there a way to easier way keep the standard header yet edit it?

 

Any advice on the best way to accomplish this is welcome... Thanks in advance.

 

KS

I'm having trouble getting an org chart google visualization working.  I don't have any problem getting the sample code working for orgcharts from http://code.google.com/apis/visualization/documentation/gallery/orgchart.html.

 

I'm also able to get the datachart working as per the example from http://wiki.developerforce.com/index.php/Google_Visualizations.

 

Then I created my own page with a datachart using a json dataset with the appropriate columns to support an org chart.  I displayed this json data on my visual force page with this code:

 

<c:DataTable jsondata="{!RelationTable}"/>

 

The chart displayed perfectly and the data appeared to be in exactly the format required for an orgchart.

 

Then I added this statement to display the data in orgchart format:

 <c:orgchart jsondata="{!RelationTable}"/>

However, this statement gives me the following error when I try to save the visual force page:

"Component c:orgchart does not exist"

 

Does anyone have any idea of why the orgchart is not considered a valid component?  Is there some other visual force code or script that can be used to display the orgchart?  I tried modifying the code from the documentation gallery example to use json data, but I was unable to get that to work.

 

Thanks for reading this and any help you might be able to offer.

Hi,

 

I'm currently working on setting up a visualforce page that contains a gauge from the Google Visualization library, and while the gauge shows on initial page load, if I attempt to rerender the section (inside of an outputpanel) the header will show but the gauge itself won't.

 

I can examine the page and see that the JSON is being updated, so I'm not sure what I may be doing wrong here.  Can anyone help out or have struggled through this already?

Hi ,

 

I need to create a line chart showing 3 lines one for Actual 08 and 09

And the third for budget 09.

 

I have created 2 custom Objects so my Actual's are all part of one record for the year.

 I know the code for a pie chart is

 

IMAGE("http://chart.apis.google.com/chart?cht=c1&chd=t:" & Text( Variable_1__c )
& "," & Text(Variable_2 __c ) & "," & Text(Variable_3__c ) & "," & Text(Variable_4__c ) & "," & Text(Variable_5__c ) & "&chs=300x100&chf=bg,s,f3f3ec&chl= Variable 1 Name | Variable 2 Name | Variable 3 Name | Variable 4 Name | Variable 5 Name ", "Chart Title")

  

Do I need to create 36 fields to have my line charts????

 

Thank you

 

Hello,

 

I'm wondering if anyone has experience deploying VisualForce pages related to custom objects that have overridden default buttons and actions such as new, edit, and tab view. It seems that when we have deployed to a new org, none of our custom objects have these overridden actions.

 

The reason why I find this so curious is that it seems like it would have to be possible in order to package up an app and make it available on the AppExchange, for example. Any advice would be greatly appreciated!!

 

David

Hello,

 

I followed the steps in the Developer Guide. The default site is accessible but when I click on the Position ID to go to the PublicJobDetails page, I am taken to the 'Authorization Required - You must first login in or register before accessing this page. 

 

The visualforce page has been added to the Site and Custom Object Permissions have been granted to Site Users. 

 

Message Edited by sumu on 04-29-2009 12:53 PM

I was trying the google viz code and could make a pie chart. But I couldn't figure out how to generate the corrent json string to make a Gauge.

 

Has anyone made a gauge before and could share a snippet of how to define the googleviz rows and cells to make it draw? I'm trying to put 2 or 3 together.

 

Thanks!

DSL