Hi all,

I've built a dynamic charting application using CF 4.52 and Popchart (trial
version) and am in the process of converting over to CFMX and cfchart, which
is proving to be a breeze.

All except for one thing. Popchart has a feature whereby you can specify to
save the generated image to a location of your choice. I'd been using this
feature to allow users to generate charts, then save them (jpg only) to
their personal folder on the server for use in creating customized reports
with ActiveEdit (WYSIWYG editor), later to be converted to pdf using htmldoc
for publishing.

I'd like to do the same with cfchart and have set the tag to cache to disk.
Basically I want to perform a cffile move action to place a copy of the
image into the user's directory. The only problem I have is extracting the
actual filename generated by cfchart. Anyone got any ideas? My first thought
is to run some directory and fileexists checks before and after the chart
generation to try and determine which file to transfer, however this may
pose problems with concurrency (cflock could maybe solve this).

The whole process must take place out of sight from the user. Basically the
user generates flash charts onscreen and then if they wish to use the chart
for a report, they click a button or link below the chart, which generates
the chart as a jpg and saves it to the users' directory automatically.

Ideally I'd like to be able to extract the filename directly from cfchart
tag but it doesn't appear to be available.

TIA,
Dave

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to