Skip to main content
Inspiring
October 27, 2010
Question

CFChart in CFDocument on CF8

  • October 27, 2010
  • 2 replies
  • 2822 views

I'm using CF8 enterprise on Windows Server 2008 and CF8 developer on Windows Server 2003.  I've never had problems getting images or cfcharts on my cfdocuments on my development server, but just yesterday got images to work on the production server by using file://ipaddress instead of the regular img src="img.jpg", but I still can't get the cfcharts to show up on the production server.  With jpg and png the red x shows up, when I use flash, a blank box shows up.  Does anyone have any hints?


    This topic has been closed for replies.

    2 replies

    kodemonkiAuthor
    Inspiring
    October 29, 2010

    The answer was here all along, I was just searching for the wrong things.

    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=graphing_10.html

    http://forums.adobe.com/message/3233968

    <cfloop from="1" to="5" index="i">

    <cfmodule template="generateReportingGraphs.cfm" graphNum="#i#" dealer_id="#dealer_id#" month="#month#" year="#year#">
    <img src="http://#ip_address#/portal/PROD/Forms/monthly_reports/#dealer_id#_chart_#i#.jpg">

    </cfloop>

    generateReportingGraphs:

    <cfchart name="mychart" scalefrom="#min#" scaleto="#max#" showlegend="yes" title="Total Closing Inventory & Total Idle Capital" format="jpg" chartheight="#gheight#" chartwidth="#gwidth#">
                            <cfchartseries type="line" query="grabData" serieslabel="Total Inventory" valuecolumn="total_inventory" itemcolumn="xlabel"/>
                            <cfchartseries type="line" query="grabData" serieslabel="Idle Capital" valuecolumn="total_idle_capital" itemcolumn="xlabel"/>
                        </cfchart>

    <cffile action="write" nameconflict="overwrite" file="#getdirectoryFromPath(getCurrentTemplatePath())##dealer_id#_chart_#graphnum#.jpg" output="#mychart#">

    Community Expert
    October 28, 2010

    Is your production server in a clustered environment? If so, it's possible that requests for the dynamically-generated chart are being sent to another cluster member which doesn't have them - they're only generated on the server that ran the CFCHART tag.

    Does your production server have a properly-configured /CFIDE virtual mapping?

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

    GSA Schedule, and provides the highest caliber vendor-authorized

    instruction at our training centers, online, or onsite.

    Read this before you post:

    http://forums.adobe.com/thread/607238

    Dave Watts, Eidolon LLC
    kodemonkiAuthor
    Inspiring
    October 28, 2010

    We are not using clustered environments.

    I'm not sure about our /CFIDE virtual mapping.  I'll ask my SysAdmin when he comes in, but he'll probably want to know more.  Can you expand on this?

    Thanks!

    Community Expert
    October 28, 2010

    What happens if you go to http://your_production_server/CFIDE/scripts/ ?

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

    GSA Schedule, and provides the highest caliber vendor-authorized

    instruction at our training centers, online, or onsite.

    Read this before you post:

    http://forums.adobe.com/thread/607238

    Dave Watts, Eidolon LLC