-
1. Re: CFChart in CFDocument on CF8
Dave Watts Oct 28, 2010 3:17 AM (in response to kodemonki)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
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:
-
2. Re: CFChart in CFDocument on CF8
kodemonki Oct 28, 2010 5:30 AM (in response to Dave Watts)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!
-
3. Re: CFChart in CFDocument on CF8
Dave Watts Oct 28, 2010 5:46 AM (in response to kodemonki)What happens if you go to http://your_production_server/CFIDE/scripts/ ?
Dave Watts, CTO, Fig Leaf Software
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:
-
4. Re: CFChart in CFDocument on CF8
kodemonki Oct 28, 2010 5:51 AM (in response to Dave Watts)On my computer I get a 403 error.
-
5. Re: CFChart in CFDocument on CF8
Dave Watts Oct 28, 2010 9:05 AM (in response to kodemonki)Well, that's probably why your charts aren't rendering. Check permissions on the virtual directory.
Dave Watts, CTO, Fig Leaf Software
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:
-
6. Re: CFChart in CFDocument on CF8
kodemonki Oct 28, 2010 10:18 AM (in response to Dave Watts)It's so weird then that I get the same message on my development server, but both regular output and cfdocuments output render correctly. I'll have my SysAdmin look at it though, thanks!
.
-
7. Re: CFChart in CFDocument on CF8
kodemonki Oct 28, 2010 11:26 AM (in response to kodemonki)I can see .cfm pages in CFIDE/scripts, but I can't directory browse. Are you saying I should be able to directory browse?
-
8. Re: CFChart in CFDocument on CF8
kodemonki Oct 29, 2010 8:43 AM (in response to kodemonki)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#">


