RE: [cfaussie] CFChart and emailing

2011-03-21 Thread Cassie Woolley
I have done it like this:

 

cfchart name=myChart format = png 

dataBackgroundColor = ###request.color_background# 

showBorder = no showLegend = no chartWidth=220
chartHeight=270 pieslicestyle=sliced style=piechart.xml

cfchartseries 

  type=pie

  query=graph_query

  itemcolumn=swstatus  valuecolumn=numrecs paintStyle=light
colorlist=#colorList#

/cfchartseries 

/cfchart 



cfset tmpNewName = graph#GetTickCount()#.png /

cffile action=write file=#request.dir#data\graphs\#tmpNewName#
output=#myChart# nameconflict=overwrite

cfoutputimg
src=http://#cgi.server_name#data/graphs/#tmpNewName#;/cfoutput

 

This is old so it could possibly be done more elegantly now but it works.

 

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of rai...@ozemail.com.au
Sent: Tuesday, 22 March 2011 10:19 AM
To: cfaussie@googlegroups.com
Subject: [cfaussie] CFChart and emailing

 

Hi,

 

I have a page that generates some statistical tables and then under each
table displays the statistics graphically using cfcharts

 

Problem I have is trying to send the page as an email or even copy and past
the graph into an email the graph then displays a message that the content
has timed out and to refresh the page.

 

Is it possible to have the cfchart data as image files as they are created
anthen reference said files in a cfmail  tag ???

 

Suggestions or comments regarding being able to email cfcharts would be
appreciated

 

regards claude

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] CFChart and emailing

2011-03-21 Thread Steve Onnis
You will need to use the name attribute so you can access the binary data
of the chart. From here you can use that to save it to a filename on the
file system or attach it to an email. Keep in mind though you wont get all
the hovering or anything. It is just the chart itself

 

From: rai...@ozemail.com.au [mailto:rai...@ozemail.com.au] 
Sent: Tuesday, 22 March 2011 11:19 AM
To: cfaussie@googlegroups.com
Subject: [cfaussie] CFChart and emailing

 

Hi,

 

I have a page that generates some statistical tables and then under each
table displays the statistics graphically using cfcharts

 

Problem I have is trying to send the page as an email or even copy and past
the graph into an email the graph then displays a message that the content
has timed out and to refresh the page.

 

Is it possible to have the cfchart data as image files as they are created
anthen reference said files in a cfmail  tag ???

 

Suggestions or comments regarding being able to email cfcharts would be
appreciated

 

regards claude

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Passing attributescollection into cfimport tag libraries

2011-03-21 Thread Glen Dunlop
 

You need to do it this way.

 

utils:foo attributecollection=#someStruct# /

 

 

 

 

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Steve Onnis
Sent: Tuesday, 22 March 2011 1:34 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Passing attributescollection into cfimport tag libraries

 

Is there a way to pass a collection into a cfimport tag library tag item?

 

For example

 

cfimport taglib=lib prefix=utils /

utils:foo attributescollection=#someStruct# /

 

I have tried this but it doesn't seem to work

 

Steve

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Passing attributescollection into cfimport tag libraries

2011-03-21 Thread Kym Kovan

On 22/03/2011 13:33, Steve Onnis wrote:

Is there a way to pass a collection into a cfimport tag library tag item?

For example

cfimport taglib=”lib” prefix=”utils” /

utils:foo attributescollection=”#someStruct#” /

I have tried this but it doesn’t seem to work


its singular and without the quotes:

 attributecollection=#someStruct#

In testing that I just found out that it is super fussy about quotes and 
hashes.


 attributecollection=#someStruct# fails
and
 attributecollection=someStruct fails

that is weird...

--
Yours,

Kym Kovan
mbcomms.net.au


--
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Passing attributescollection into cfimport tag libraries

2011-03-21 Thread Glen Dunlop

I actually use quotes and it works for me.




 -Original Message-
 From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On
 Behalf Of Kym Kovan
 Sent: Tuesday, 22 March 2011 2:32 PM
 To: cfaussie@googlegroups.com
 Subject: Re: [cfaussie] Passing attributescollection into cfimport tag
libraries
 
 On 22/03/2011 13:33, Steve Onnis wrote:
  Is there a way to pass a collection into a cfimport tag library tag
item?
 
  For example
 
  cfimport taglib=lib prefix=utils /
 
  utils:foo attributescollection=#someStruct# /
 
  I have tried this but it doesn't seem to work
 
 its singular and without the quotes:
 
   attributecollection=#someStruct#
 
 In testing that I just found out that it is super fussy about quotes and
hashes.
 
   attributecollection=#someStruct# fails and
   attributecollection=someStruct fails
 
 that is weird...
 
 --
 Yours,
 
 Kym Kovan
 mbcomms.net.au

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Passing attributescollection into cfimport tag libraries

2011-03-21 Thread Steve Onnis
Thanks guys. Just needed to spell it right :)

-Original Message-
From: Glen Dunlop [mailto:glen.dun...@gmail.com] 
Sent: Tuesday, 22 March 2011 2:37 PM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] Passing attributescollection into cfimport tag
libraries


I actually use quotes and it works for me.




 -Original Message-
 From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On
 Behalf Of Kym Kovan
 Sent: Tuesday, 22 March 2011 2:32 PM
 To: cfaussie@googlegroups.com
 Subject: Re: [cfaussie] Passing attributescollection into cfimport tag
libraries
 
 On 22/03/2011 13:33, Steve Onnis wrote:
  Is there a way to pass a collection into a cfimport tag library tag
item?
 
  For example
 
  cfimport taglib=lib prefix=utils /
 
  utils:foo attributescollection=#someStruct# /
 
  I have tried this but it doesn't seem to work
 
 its singular and without the quotes:
 
   attributecollection=#someStruct#
 
 In testing that I just found out that it is super fussy about quotes and
hashes.
 
   attributecollection=#someStruct# fails and
   attributecollection=someStruct fails
 
 that is weird...
 
 --
 Yours,
 
 Kym Kovan
 mbcomms.net.au

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Passing attributescollection into cfimport tag libraries

2011-03-21 Thread Kym Kovan

On 22/03/2011 14:36, Glen Dunlop wrote:


I actually use quotes and it works for me.


which is what you would expect. I admit to being surprised when it 
errored but it did.


I'm a bit old-fashionedy and like to do this when building structures as 
I find it more readable and maintainable:

cfset theGalleries = application[Site_#thesubSiteID#].Galleries /

so I expected the #blah# to work for the attributes but it definitely 
errored. and I just tried it again. Dependent on context maybe? One to 
watch out for...




--
Yours,

Kym Kovan
mbcomms.net.au


--
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.