setting a var from Inside cfoutput group

2009-02-27 Thread Paul Ihrig
cfoutput group=n1#n1Id#,/cfoutput i need to set a variable as a list from the results above. i tried putting a cfset inside the cfoutput, but it didn't work. some thing like cfset myList = 7,4,9 ~| Adobe® ColdFusion® 8

RE: setting a var from Inside cfoutput group

2009-02-27 Thread Adrian Lynch
cfset myList = ListAppend(myList, ni.id) Adrian -Original Message- From: Paul Ihrig [mailto:pih...@gmail.com] Sent: 27 February 2009 16:58 To: cf-talk Subject: setting a var from Inside cfoutput group cfoutput group=n1#n1Id#,/cfoutput i need to set a variable as a list from

Re: setting a var from Inside cfoutput group

2009-02-27 Thread Paul Ihrig
cfoutput group=n1 cfset myList = #n1Id#, cfset myListx = ListAppend(myList, n1Id) /cfoutput returns: myList: 6, myListX: 6,,6 cfoutput group=n1#n1Id#,/cfoutput returns: 1,7,2,6, which is what i want, but as a carible i can call outside of the output.

Re: setting a var from Inside cfoutput group

2009-02-27 Thread morgan l
You're restarting the variable by setting it inside the output group. Try: cfset myList = cfoutput group=n1 cfset myListx = ListAppend(myList, n1Id) /cfoutput On Fri, Feb 27, 2009 at 11:10 AM, Paul Ihrig pih...@gmail.com wrote: cfoutput group=n1 cfset myList = #n1Id#, cfset myListx =

Re: setting a var from Inside cfoutput group

2009-02-27 Thread Paul Ihrig
Thanks Guys! worked like a charm! On Fri, Feb 27, 2009 at 12:18 PM, morgan l greyk...@gmail.com wrote: You're restarting the variable by setting it inside the output group. Try: cfset myList = cfoutput group=n1 cfset myListx = ListAppend(myList, n1Id) /cfoutput On Fri, Feb 27, 2009

Re: setting a var from Inside cfoutput group

2009-02-27 Thread Jason Fisher
Or, if you don't need to loop the output for any other reason, just do this once, without using CFOUTPUT at all: cfset myList = valueList(n1.n1Id) / ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic