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
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
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.
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 =
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
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
6 matches
Mail list logo