Re: question on cfloop

2013-03-01 Thread Russ Michaels
once or at each looping. The expressions passed to tags are evaluated first, then passed into the tag code. So in this case it's not the expression arrayLen(someArray) that's passed into the cfloop tag's code, it's the value of arrayLen(someArray), for example 2. So the TO value is immutable

Re: question on cfloop

2013-03-01 Thread Andrew Scott
/ Google+: http://plus.google.com/113032480415921517411 On Fri, Mar 1, 2013 at 11:46 AM, funand learning funandlrnn...@gmail.comwrote: I am sorry, I wasn't clear. the to is arraylen. Sometimes the arraylen is 1 cfloop from=1 to=#ArrayLen(somearray)# index=j /cfloop cfoutput#j#/cfoutput

Re: question on cfloop

2013-03-01 Thread Adam Cameron
the loop is not run even once if the condition is not met: cfoutput Beforebr cfloop index=i from=1 to=0 Within: #i#br /cfloop After #i#br /cfoutput Output: Before After 1 As per the OP's situation, if the TO value is dynamic, one doesn't always know whether the loop will run zero, one or more

Re: question on cfloop

2013-03-01 Thread Russ Michaels
within the loop is not run even once if the condition is not met: cfoutput Beforebr cfloop index=i from=1 to=0 Within: #i#br /cfloop After #i#br /cfoutput Output: Before After 1 As per the OP's situation, if the TO value is dynamic, one doesn't always know whether the loop

Re: question on cfloop

2013-03-01 Thread Adam Cameron
Just run the code see, mate. On 1 March 2013 12:34, Russ Michaels r...@michaels.me.uk wrote: Yes Adam it does, I had to change much code back in the day due to that very issue. ~| Order the Adobe Coldfusion Anthology

Re: question on cfloop

2013-03-01 Thread Russ Michaels
that out. Nah, the condition is checked, but the code within the loop is not run even once if the condition is not met: cfoutput Beforebr cfloop index=i from=1 to=0 Within: #i#br /cfloop After #i#br /cfoutput Output: Before After 1 As per the OP's situation, if the TO value

Re: question on cfloop

2013-03-01 Thread Adam Cameron
Sure. But you *don't need to*. cfloop deals with it. -- Adam On 1 March 2013 12:38, Russ Michaels r...@michaels.me.uk wrote: Also it is quite easy to test if the dynamic.value will be above zero. E.g Cfif arraylen(var) gt 0 Do loop cfelse Do something else /cfif Regards Russ

Re: question on cfloop

2013-03-01 Thread Russ Michaels
Have done so many times, many years ago thus how.discovered the issues. Unless it got fixed in current versions. Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF search engine On Mar 1, 2013 12:36 PM, Adam Cameron

RE: question on cfloop

2013-03-01 Thread UXB
It's the way index-based loops work. I am afraid that the way you described is not the way they work. The condition is evaluated before the loop starts and only commences if the condition is met. So cfloop from=1 to=0 index=j will not run at all. Do you ever manipulate somearray inside

Re: question on cfloop

2013-03-01 Thread Adam Cameron
Beforebr cfloop index=i from=1 to=0 Within: #i#br /cfloop After #i#br /cfoutput And it outputs exactly what one would expect: Before After 1 I cannot get CF5 to run on Windows 7, but I'd run the same on that, and get the same results. I bet you a pint. -- Adam

Re: question on cfloop

2013-03-01 Thread Russ Michaels
Michaels r...@michaels.me.uk wrote: Have done so many times, many years ago thus how.discovered the issues. Unless it got fixed in current versions. Sorry mate, you're just mistaken. I dunno how far back you want to go, but I ran this code on CFMX7: cfoutput Beforebr cfloop index=i from=1

question on cfloop

2013-02-28 Thread fun and learning
I have a query on looping in coldfusion.Why does the below loop run twice? cfloop from=1 to=1 index=j cfoutput#j#/cfoutput /cfloop I thought the above code should return only 1, but it returns 1 2 ~| Order the Adobe

question on cfloop

2013-02-28 Thread fun and learning
I have a query on looping in coldfusion.Why does the below loop run twice? cfloop from=1 to=1 index=j cfoutput#j#/cfoutput /cfloop I thought the above code should return only 1, but it returns 1 2 ~| Order the Adobe

Re: question on cfloop

2013-02-28 Thread Phillip Vector
Why are you looping from 1 to 1? That isn't a loop. On Thu, Feb 28, 2013 at 7:22 PM, fun and learning funandlrnn...@gmail.com wrote: I have a query on looping in coldfusion.Why does the below loop run twice? cfloop from=1 to=1 index=j cfoutput#j#/cfoutput /cfloop I thought the above

Re: question on cfloop

2013-02-28 Thread AJ Mercer
not on Railo 4 is this the whole script? is it in at Custom Tag? On 1 March 2013 08:22, fun and learning funandlrnn...@gmail.com wrote: I have a query on looping in coldfusion.Why does the below loop run twice? cfloop from=1 to=1 index=j cfoutput#j#/cfoutput /cfloop I thought

Re: question on cfloop

2013-02-28 Thread funand learning
I am sorry, I wasn't clear. the to is arraylen. Sometimes the arraylen is 1 cfloop from=1 to=#ArrayLen(somearray)# index=j /cfloop cfoutput#j#/cfoutput --this returns 2 On Thu, Feb 28, 2013 at 6:34 PM, Phillip Vector vec...@mostdeadlygame.comwrote: Why are you looping from 1 to 1

Re: question on cfloop

2013-02-28 Thread Billy Cravens
wasn't clear. the to is arraylen. Sometimes the arraylen is 1 cfloop from=1 to=#ArrayLen(somearray)# index=j /cfloop cfoutput#j#/cfoutput --this returns 2 On Thu, Feb 28, 2013 at 6:34 PM, Phillip Vector vec...@mostdeadlygame.comwrote: Why are you looping from 1 to 1

RE: question on cfloop

2013-02-28 Thread Dave Jemison
PM To: cf-talk Subject: Re: question on cfloop I am sorry, I wasn't clear. the to is arraylen. Sometimes the arraylen is 1 cfloop from=1 to=#ArrayLen(somearray)# index=j /cfloop cfoutput#j#/cfoutput --this returns 2

Re: question on cfloop

2013-02-28 Thread Steve 'Cutter' Blades
? cfloop from=1 to=1 index=j cfoutput#j#/cfoutput /cfloop I thought the above code should return only 1, but it returns 1 2 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp

Re: question on cfloop

2013-02-28 Thread Adam Cameron
It's the way index-based loops work. At the first pass of the cfloop, the INDEX variable is created with the initial value, and the condition (in this case the condition is an implicit index variable value = TO value). If the condition is true, the loop block is entered. At the bottom of the loop

Re: question on cfloop

2013-02-28 Thread Adam Cameron
I've never used the loop index, and I don't think you should depend on it. Not sure what documented behavior is, but if it isn't documented in a specific way, it would be totally appropriate for it to go out of scope in a future version (kinda surprised it doesn't) Instead, use your own

Re: question on cfloop

2013-02-28 Thread Adam Cameron
into the cfloop tag's code, it's the value of arrayLen(someArray), for example 2. So the TO value is immutable once it's first evaluated. A conditional loop is different, in that the string that is the condition is passed into the cfloop code, not the result of it at the time the cfloop tag is called, eg

isDefined inside a cfloop

2012-04-30 Thread Steve LaBadie
I have a form with the results being emailed to the owner of the form. I have several groups of radio buttons and checkboxes. I am using the following to check for the empty form control: Veteran: cfloop from=1 to=10 index=vcfif isDefined(FORM.Veteran#v#)cfoutput#v#/cfoutput/cfif/cfloop

Re: isDefined inside a cfloop

2012-04-30 Thread Dave Watts
I have a form with the results being emailed to the owner of the form. I have several groups of radio buttons and checkboxes. I am using the following to check for the empty form control: Veteran: cfloop from=1 to=10 index=vcfif isDefined(FORM.Veteran#v#)cfoutput#v#/cfoutput/cfif/cfloop

Re: isDefined inside a cfloop

2012-04-30 Thread Greg Morphis
to check for the empty form control: Veteran: cfloop from=1 to=10 index=vcfif isDefined(FORM.Veteran#v#)cfoutput#v#/cfoutput/cfif/cfloop This does work for checking if it is empty but does not return a result if it is answered. FYI - I am still using MX7 and am in the process

RE: isDefined inside a cfloop

2012-04-30 Thread Steve LaBadie
Greg, Dave, No luck. Steve LaBadie, Web Manager East Stroudsburg University 570-422-3999 http://www.esu.edu slaba...@esu.edu -Original Message- From: Greg Morphis [mailto:gmorp...@gmail.com] Sent: Monday, April 30, 2012 10:52 AM To: cf-talk Subject: Re: isDefined inside a cfloop

Re: isDefined inside a cfloop

2012-04-30 Thread Raymond Camden
://www.esu.edu slaba...@esu.edu -Original Message- From: Greg Morphis [mailto:gmorp...@gmail.com] Sent: Monday, April 30, 2012 10:52 AM To: cf-talk Subject: Re: isDefined inside a cfloop you should be able to use form[veteran#v#] to get the value On Mon, Apr 30, 2012 at 9:44 AM, Steve

RE: isDefined inside a cfloop

2012-04-30 Thread Steve LaBadie
label for=VeteranVeteran:/label select name=Veteran id=Veteran optionSelect.../option option value=YesYes/option option value=NoNo/option /select Steve LaBadie, Web Manager East Stroudsburg University 570-422-3999 http://www.esu.edu slaba...@esu.edu

Re: isDefined inside a cfloop

2012-04-30 Thread Dave Watts
label for=VeteranVeteran:/label select name=Veteran id=Veteran optionSelect.../option option value=YesYes/option option value=NoNo/option /select Well that doesn't match what you're looking for in your form processing code at all. First, this will always have a value in your action page,

RE: isDefined inside a cfloop

2012-04-30 Thread Steve LaBadie
...@figleaf.com] Sent: Monday, April 30, 2012 11:28 AM To: cf-talk Subject: Re: isDefined inside a cfloop label for=VeteranVeteran:/label select name=Veteran id=Veteran optionSelect.../option option value=YesYes/option option value=NoNo/option /select Well that doesn't match what you're

Re: isDefined inside a cfloop

2012-04-30 Thread Greg Morphis
://www.esu.edu slaba...@esu.edu -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Monday, April 30, 2012 11:28 AM To: cf-talk Subject: Re: isDefined inside a cfloop label for=VeteranVeteran:/label select name=Veteran id=Veteran optionSelect.../option option

Re: isDefined inside a cfloop

2012-04-30 Thread Russ Michaels
...@esu.edu -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Monday, April 30, 2012 11:28 AM To: cf-talk Subject: Re: isDefined inside a cfloop label for=VeteranVeteran:/label select name=Veteran id=Veteran optionSelect.../option option value

RE: isDefined inside a cfloop

2012-04-30 Thread Steve LaBadie
To: cf-talk Subject: Re: isDefined inside a cfloop Why not use cfparams on the action page and default the values? You can even default their value to and then if it equals that inform the user they need to go back and choose one. Or in your form on either the Yes or No, use checked=checked

Re: isDefined inside a cfloop

2012-04-30 Thread Greg Morphis
are on and the same? Steve LaBadie, Web Manager East Stroudsburg University 570-422-3999 http://www.esu.edu slaba...@esu.edu -Original Message- From: Greg Morphis [mailto:gmorp...@gmail.com] Sent: Monday, April 30, 2012 12:12 PM To: cf-talk Subject: Re: isDefined inside a cfloop Why

Re: isDefined inside a cfloop

2012-04-30 Thread Christopher Watson
As long as you have some separation.. [code examples snipped] One of the strengths of ColdFusion (and, indeed, other languages of its ilk) is that you don't have to separate your input interfaces from your back-end processing, and even the response display. There are sound reasons for

Re: isDefined inside a cfloop

2012-04-30 Thread Russ Michaels
allthough most here would aregue that your business logic should at least be in a separate CFC so that the code is re-usable. There are some good form handlers out there that do all the validation and generate nice error messages for you. here is one off the top of my head

RE: isDefined inside a cfloop

2012-04-30 Thread Steve LaBadie
] Sent: Monday, April 30, 2012 1:39 PM To: cf-talk Subject: Re: isDefined inside a cfloop allthough most here would aregue that your business logic should at least be in a separate CFC so that the code is re-usable. There are some good form handlers out there that do all the validation and generate

Re: isDefined inside a cfloop

2012-04-30 Thread Christopher Watson
Absolutely. In 100% agreement there. Though the invocation of the CFC can still live in the multi-function form template. allthough most here would aregue that your business logic should at least be in a separate CFC so that the code is re-usable.

Re: isDefined inside a cfloop

2012-04-30 Thread Christopher Watson
Steve, to respond to your inquiry specifically, I've always felt it was best to take complete control over what is in the Form scope, right from the top, by laying out a series of cfparam tags and their default values, especially if check boxes or initially-unselected radio button groups are

RE: isDefined inside a cfloop

2012-04-30 Thread Steve LaBadie
: Re: isDefined inside a cfloop Steve, to respond to your inquiry specifically, I've always felt it was best to take complete control over what is in the Form scope, right from the top, by laying out a series of cfparam tags and their default values, especially if check boxes or initially-unselected

Attribute validation error for tag cfloop

2011-11-10 Thread John Watts
I get The value of the attribute query, which is currently WHAgentSales, is invalid. This is the loop: cfoutput cfloop query=WHAgentSales tr td align=right#WHAgentSales.Agent#/td td align=right#WHAgentSales.ciscoid#/td td align=right#WHAgentSales.SLL_ASC_ID_NO

Re: Attribute validation error for tag cfloop

2011-11-10 Thread Dave Watts
I get The value of the attribute query, which is currently WHAgentSales, is invalid. This is the loop: cfoutput cfloop query=WHAgentSales ... Have you confirmed that there's a query called WHAgentSales in the page? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http

Re: Query of Queries and GROUP - use CFLOOP?

2011-08-02 Thread Chris Sizemore
I am using a cfloop condition approach to perform a standard branched tree operation. I have four tables and my query is pretty straight forward. The output is not working though. It is returning the correct amount of results and is organizing them properly but the values displayed

Re: Query of Queries and GROUP - use CFLOOP?

2011-08-02 Thread Chris Sizemore
I am using a cfloop condition approach to perform a standard branched tree operation. I have four tables and my query is pretty straight forward. The output is not working though. It is returning the correct amount of results and is organizing them properly but the values displayed

Re: Query of Queries and GROUP - use CFLOOP?

2011-08-02 Thread Azadi Saryev
=#GetStates.PropertyLocationID# class=leftnav#GetStates.PropertyLocationName#/ABR /img src=images/1x1black.gif width=100% height=1 vspace=2 /BR / /cfoutput /cfoutput /cfoutput /cfoutput Azadi On 03/08/2011 09:59 , Chris Sizemore wrote: I am using a cfloop condition approach to perform a standard branched tree

Performance Issue with CFLOOP

2011-03-09 Thread webmaster
Looking for any ideas here. I'm running a cfloop over a query from a database with a little over 60,000 records in it on MSSQL. I am doing a cfflush so I can watch what record it is on so I can keep up with how quickly or slowly the loop is running. The problem is after about 4850ish records

Re: Performance Issue with CFLOOP

2011-03-09 Thread Michael Grant
. That will at least help you narrow down if it's truly a problem with the loop. On Wed, Mar 9, 2011 at 4:03 PM, webmas...@pegweb.com wrote: Looking for any ideas here. I'm running a cfloop over a query from a database with a little over 60,000 records in it on MSSQL. I am doing a cfflush so I can watch

Re: Performance Issue with CFLOOP

2011-03-09 Thread Matt Quackenbush
Yes, it will slow down with a query of that size. This is totally natural and completely expected behavior, because you are loading up the JVM. The closer you get to reaching its max threshold, the slower things will become. Is there any reason why you are not doing this in smaller segments?

RE: Performance Issue with CFLOOP

2011-03-09 Thread webmaster
-talk Subject: Re: Performance Issue with CFLOOP Yes, it will slow down with a query of that size. This is totally natural and completely expected behavior, because you are loading up the JVM. The closer you get to reaching its max threshold, the slower things will become. Is there any reason

Re: Performance Issue with CFLOOP

2011-03-09 Thread Matt Quackenbush
Yes, tweaking your JVM settings (including max heap) *can* fix this. Of course you are limited to the amount of RAM you have available to you, which is limited by both the physical RAM installed and potentially your OS. I am by no means an expert on this particular topic. I usually rely on

RE: Performance Issue with CFLOOP

2011-03-09 Thread webmaster
Thanks a bunch :) -Original Message- From: Matt Quackenbush [mailto:quackfu...@gmail.com] Sent: Wednesday, March 09, 2011 4:34 PM To: cf-talk Subject: Re: Performance Issue with CFLOOP Yes, tweaking your JVM settings (including max heap) *can* fix this. Of course you are limited

RE: Performance Issue with CFLOOP

2011-03-09 Thread webmaster
maximum heap size to 1500mb so will try again. :( -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Wednesday, March 09, 2011 4:12 PM To: cf-talk Subject: Re: Performance Issue with CFLOOP Are you sure it's actually the loop slowing down or is it your browser slowing

Re: Performance Issue with CFLOOP

2011-03-09 Thread Michael Grant
with CFLOOP Are you sure it's actually the loop slowing down or is it your browser slowing down from all the cfflush-ing? Try removing the cfflush and track the time it takes by writing the execution time to an array then dump out the array after the loop completes and compare your results

Re: Performance Issue with CFLOOP

2011-03-09 Thread Mark Mandel
PM To: cf-talk Subject: Re: Performance Issue with CFLOOP Are you sure it's actually the loop slowing down or is it your browser slowing down from all the cfflush-ing? Try removing the cfflush and track the time it takes by writing the execution time to an array then dump out

RE: Performance Issue with CFLOOP

2011-03-09 Thread Andrew Scott
Not sure what query you are calculating to add back to the original query, but can it not be done on the database via sql? It would be a hundreds times quicker than looping over a query to then do it. Regards, Andrew Scott http://www.andyscott.id.au/

RE: Performance Issue with CFLOOP

2011-03-09 Thread webmaster
: Wednesday, March 09, 2011 9:03 PM To: cf-talk Subject: Re: Performance Issue with CFLOOP Batch stuff like this, I tend to break into chunks, and call each chunk via a cfhttp call. (maybe 1000 records or so per chunk?) That way you get a single request, that can be entirely gc'd after each request

RE: Performance Issue with CFLOOP

2011-03-09 Thread webmaster
: RE: Performance Issue with CFLOOP Not sure what query you are calculating to add back to the original query, but can it not be done on the database via sql? It would be a hundreds times quicker than looping over a query to then do it. Regards, Andrew Scott http://www.andyscott.id.au

RE: Performance Issue with CFLOOP

2011-03-09 Thread webmaster
, March 09, 2011 9:03 PM To: cf-talk Subject: Re: Performance Issue with CFLOOP Batch stuff like this, I tend to break into chunks, and call each chunk via a cfhttp call. (maybe 1000 records or so per chunk?) That way you get a single request, that can be entirely gc'd after each request. Worked

Re: Performance Issue with CFLOOP

2011-03-09 Thread Mark Mandel
with the cfhttp at the bottom passing a record variable until you reach the end of file or you doing something different? -Original Message- From: Mark Mandel [mailto:mark.man...@gmail.com] Sent: Wednesday, March 09, 2011 9:03 PM To: cf-talk Subject: Re: Performance Issue with CFLOOP Batch

cflayout problem - cfloop

2011-03-01 Thread Ken Hammond
I cannot get this code to work, no matter what I do, it returns a blank page. The javascript and ajaxonloads are required to make the accordians collapsed on page load. Any help would be much appreciated. Code: html head script type=text/javascript cfloop index

Re: cflayout problem - cfloop

2011-03-01 Thread Steve 'Cutter' Blades
script type=text/javascript cfloop index = ListElement list = A,B,C,D cfoutput #ListElement# = function(){ColdFusion.Layout.collapseAccordion('Accordion#ListElement#','panel#ListElement#');} /cfoutput /cfloop /script

Getting information from a cfquery/cfloop to display in a table or div

2011-02-08 Thread Michelle Dupray
will not display in each cell. Any ideas? cfquery name=member datasource=ASAGOV SELECT fname, lname, Starship, Rank FROM Star_Trek where rank 'Captain' AND rank 'Science Officer' /cfquery cfloop query=membercfoutput #fname# #lname#, #starship# /cfoutput/cfloop

RE: Getting information from a cfquery/cfloop to display in a table or div

2011-02-08 Thread Rick Faircloth
Try leaving out the cfoutput/cfoutput in the your cfloop. Rick -Original Message- From: Michelle Dupray [mailto:mdup...@gmail.com] Sent: Tuesday, February 08, 2011 12:24 PM To: cf-talk Subject: Getting information from a cfquery/cfloop to display in a table or div Hello, I'm trying

Re: Getting information from a cfquery/cfloop to display in a table or div

2011-02-08 Thread Rob Parkhill
/cfoutput in the your cfloop. Rick -Original Message- From: Michelle Dupray [mailto:mdup...@gmail.com] Sent: Tuesday, February 08, 2011 12:24 PM To: cf-talk Subject: Getting information from a cfquery/cfloop to display in a table or div Hello, I'm trying to get information from

CFLoop query, break if condition met

2011-01-31 Thread Adam Bourg
I have this Cfloop over a query. In the loop I have 4 conditional statements that basically call a template that generates an email if the condition is met. Let's say condition 1 is met, is there a way to break the loop and go to the next index and start at the beginning of the code

Re: CFLoop query, break if condition met

2011-01-31 Thread John Theis
use CFSWITCH instead of a sequence of CFIFs On Mon, Jan 31, 2011 at 11:11 AM, Adam Bourg adam.bo...@gmail.com wrote: I have this Cfloop over a query. In the loop I have 4 conditional statements that basically call a template that generates an email if the condition is met. Let's say

Re: CFLoop query, break if condition met

2011-01-31 Thread Michael Grant
cfbreak / On Mon, Jan 31, 2011 at 11:11 AM, Adam Bourg adam.bo...@gmail.com wrote: I have this Cfloop over a query. In the loop I have 4 conditional statements that basically call a template that generates an email if the condition is met. Let's say condition 1 is met, is there a way

Re: CFLoop query, break if condition met

2011-01-31 Thread Adam Bourg
I need to make a revision. I have an if with a nested if. How do I do it with this? cfif LTE someCondition1 cfif GT someCondition2 !--- Code here --- /cfif /cfif I have this Cfloop over a query. In the loop I have 4 conditional statements that basically call a template that generates

Re: CFLoop query, break if condition met

2011-01-31 Thread Michael Grant
Sorry, just read the rest of the comment. I got a little send happy. Try cfcontinue / On Mon, Jan 31, 2011 at 11:26 AM, Michael Grant mgr...@modus.bz wrote: cfbreak / On Mon, Jan 31, 2011 at 11:11 AM, Adam Bourg adam.bo...@gmail.com wrote: I have this Cfloop over a query. In the loop I

Re: CFLoop query, break if condition met

2011-01-31 Thread Michael Grant
cfif LTE someCondition1 cfif GT someCondition2 !--- Code here --- cfcontinue / /cfif /cfif ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion

Re: CFLoop query, break if condition met

2011-01-31 Thread Michael Grant
I should add, this is CF9. If you are using a version of CF that doesn't have cfcontinue you will have to go about it a different way. If it's really just as simple as meeting the two conditions to skip the current iteration you could just set a var. pseudo: var doContinue=false if condition1

Re: cfloop working but not how I want it too:

2011-01-01 Thread Azadi Saryev
if the text users enter into your textarea looks like this: Osram|11324;11324-10;11324-15 Eiko|11224;11225;11226 then this is how you can format the output: cfoutput ul cfloop list=#FORM.crossRefList# delimiters=#chr(13)chr(10)# index=brandGroup lispan style=font-size:1.3em; font-weight:bold

Re: cfloop working but not how I want it too:

2010-12-30 Thread Teed Younger
Shouldn't that be listLast(brandGroup,;) ? Otherwise, where is productGroup defined above this?                  li#listLast(productGroup,;)#/li                /cfloop   ok here is what I have now. I had this originally just like this. As you suggested, the second cfloop should have

cfloop working but not how I want it too:

2010-12-29 Thread Teed Younger
Hi I have a text area which allows someone to enter text seperated by delimiters. This text area is then passed to my action page which displays each text in a list using the cfloop. Here is my cfloop code: cfif SESSION.crossRefList NEQ h3Cross References/h3 br

Re: cfloop working but not how I want it too:

2010-12-29 Thread Steve 'Cutter' Blades
=submit / /form /cfoutput cfelse cfset REQUEST.Arr = ListToArray(FORM.testFld,REQUEST.lf) / cfoutput h3#REQUEST.Arr[1]#/h3 ul /cfoutput cfset ArrayDeleteAt(REQUEST.Arr,1) / cfloop array=#REQUEST.Arr# index=REQUEST.i cfoutputli#REQUEST.i#/li/cfoutput /cfloop cfoutput /ul /cfoutput /cfif cfoutput /body

Re: cfloop working but not how I want it too:

2010-12-29 Thread Alan Rother
As an alternative... Given what you are trying to accomplish and not knowing all of your goals this may not work, but it's an option. Have you considered giving your users access to a WYSIWYG editor such as CKEditor (http://ckeditor.com/) or the many other offerings around these days:

Re: cfloop working but not how I want it too:

2010-12-29 Thread Teed Younger
Ok this is an application I built myself that essentially builds new html pages via input forms stored as cf variables. The goal of this particular piece of code would ultimately be that the user can create a list or multiple lists dynamically. Here would be a quick example of how one current

Re: cfloop working but not how I want it too:

2010-12-29 Thread Alan Rother
Ok, Given your goals then, I think that using a WYSIWYG editor would be far simpler than having to instruct your users on a complex scheme of delimiters to get the desired visual result. With something like CKEditor (a version of which is available natively in ColdFusion 8 and up -

RE: cfloop working but not how I want it too:

2010-12-29 Thread Russ Michaels
[mailto:teedyoun...@hotmail.com] Sent: 29 December 2010 19:34 To: cf-talk Subject: Re: cfloop working but not how I want it too: Ok this is an application I built myself that essentially builds new html pages via input forms stored as cf variables. The goal of this particular piece of code would ultimately

Re: cfloop working but not how I want it too:

2010-12-29 Thread Sean Corfield
On Wed, Dec 29, 2010 at 8:31 AM, Teed Younger teedyoun...@hotmail.com wrote: cfif SESSION.crossRefList NEQ          h3Cross References/h3          br /          cfoutput            cfloop index=brandGroup list=#FORM.crossRefList# delimiters=#chr(13)##chr(10)#              ul

Backing up a record in a cfloop

2010-11-26 Thread Richard Steele
I'd like to put a separation divider (eg. '') in a dropdown box list whose values are populated using a cfloop. Once the divider is shown, I set a variable to not show that divider again. However I need to backup one record in order to show the actual record's value that was replaced

Re: Backing up a record in a cfloop

2010-11-26 Thread Michael Grant
, Richard Steele r...@photoeye.com wrote: I'd like to put a separation divider (eg. '') in a dropdown box list whose values are populated using a cfloop. Once the divider is shown, I set a variable to not show that divider again. However I need to backup one record in order to show

Re: Backing up a record in a cfloop

2010-11-26 Thread Richard Steele
Duh! Of course! Thanks for clearing my brain cramp. Why do you need to skip an iteration? Just put an if inside the loop as to whether to display the --. Psuedo: loop if myCondition = true option value=---/option set myCondition = false / /if option

Re: CFLOOP Next Iteration

2010-11-01 Thread Matthew Lowrey
Just to say it, I too had lots of trouble with CFB, and while I liked some things about CFEclipse before that, its bloat and bugginess bummed me out (Eclipse more than CFE). YES! That's what we had issues with, getting CFEclipse to work properly... we even tried the older version as well with

Re: CFLOOP Next Iteration

2010-10-29 Thread Sean Corfield
On Wed, Oct 27, 2010 at 10:16 AM, Jacob Munson yacoub...@gmail.com wrote: You probably noticed this, but cfcontinue is a new CF9 tag, so won't work in older versions of CF. cfcontinue was new in CF9 but continue existed in cfscript before that... -- Sean A Corfield -- (904) 302-SEAN Railo

Re: CFLOOP Next Iteration

2010-10-29 Thread Sean Corfield
On Wed, Oct 27, 2010 at 4:22 PM, Matthew Lowrey rid...@gmail.com wrote: I wasn't aware of that.  We're still learning all the new tags and it doesn't come up win DreamWeaver so it was a shot in the dark to find something that would allow us to continue Time to switch to ColdFusion

Re: CFLOOP Next Iteration

2010-10-29 Thread Matthew Lowrey
On Wed, Oct 27, 2010 at 4:22 PM, Matthew Lowrey rid...@gmail.com wrote: I wasn't aware of that.  We're still learning all the new tags and it doesn't come up win DreamWeaver so it was a shot in the dark to find something that would allow us to continue Time to switch to ColdFusion

Re: CFLOOP Next Iteration

2010-10-29 Thread Russ Michaels
If ur docs are out of date then you can alays use cfquickdocs.com or coldfusiondocs.com as your reference On 29 Oct 2010 17:57, Matthew Lowrey rid...@gmail.com wrote: On Wed, Oct 27, 2010 at 4:22 PM, Matthew Lowrey rid...@gmail.com wrote: I wasn't aware o... I really wanted to switch over

Re: CFLOOP Next Iteration

2010-10-29 Thread Jacob Munson
There just hasn't been a good enough reason for my company to purchase it when DW doesn't just about everything it does for a fraction of the cost. I am going to argue that CFB is not buggy, or that people should definitely switch to CFB from DW. However, I don't agree with your statement

Re: CFLOOP Next Iteration

2010-10-29 Thread Dave Merrill
Just to say it, I too had lots of trouble with CFB, and while I liked some things about CFEclipse before that, its bloat and bugginess bummed me out (Eclipse more than CFE). But now I'm a happy camper, using IntelliJ IDEA with its CFML plugin. No, it's not perfect by any means, but it's just a

Re: CFLOOP Next Iteration

2010-10-27 Thread Jacob Munson
You probably noticed this, but cfcontinue is a new CF9 tag, so won't work in older versions of CF. Sent with my Droid On Oct 27, 2010 9:57 AM, Matthew Lowrey rid...@gmail.com wrote: Thank you guys, I think it's time I update my CF References... I shamefully have been using the MX version too

Re: CFLOOP Next Iteration

2010-10-27 Thread Matthew Lowrey
You probably noticed this, but cfcontinue is a new CF9 tag, so won't work in older versions of CF. I wasn't aware of that. We're still learning all the new tags and it doesn't come up win DreamWeaver so it was a shot in the dark to find something that would allow us to continue I'll have to

RE: cfoutput or cfloop? which is the more practical solution

2010-10-02 Thread GLM
I just read you email a few minutes ago, after working on this for the past hour. -Original Message- From: Maureen [mailto:mamamaur...@gmail.com] Sent: Thursday, September 30, 2010 10:15 PM To: cf-talk Subject: Re: cfoutput or cfloop? which is the more practical solution Did you get

Re: cfoutput or cfloop? which is the more practical solution

2010-09-30 Thread Maureen
Did you get this working? If not, could you post the structure of your data table and I'll see if I can send you the SQL to generate it. On Fri, Sep 24, 2010 at 4:23 PM, GLM g...@glmdesigns.com wrote: I have a database with presidents, governors, etc. and need to be able to pull out

Re: cfoutput or cfloop? which is the more practical solution

2010-09-27 Thread Russ Michaels
Chabot [mailto:mcha...@gmail.com] Sent: Saturday, September 25, 2010 10:50 PM To: cf-talk Subject: Re: cfoutput or cfloop? which is the more practical solution You can do this in SQL, although the methods I can think of involve advanced techniques so I hesitate to recommend them

Re: cfoutput or cfloop? which is the more practical solution

2010-09-27 Thread Dan G. Switzer, II
, September 26, 2010 8:08 PM To: cf-talk Subject: Re: cfoutput or cfloop? which is the more practical solution I was thinking years, but you could do days as well. It depends on what you want to group on in the output. To save you some searching, below is SQL to fill a numbers table for SQL

Re: cfoutput or cfloop? which is the more practical solution

2010-09-26 Thread Russ Michaels
-Original Message- From: Mike Chabot [mailto:mcha...@gmail.com] Sent: Saturday, September 25, 2010 10:50 PM To: cf-talk Subject: Re: cfoutput or cfloop? which is the more practical solution You can do this in SQL, although the methods I can think of involve advanced techniques so I hesitate

Re: cfoutput or cfloop? which is the more practical solution

2010-09-26 Thread Mike Chabot
, September 25, 2010 10:50 PM To: cf-talk Subject: Re: cfoutput or cfloop? which is the more practical solution You can do this in SQL, although the methods I can think of involve advanced techniques so I hesitate to recommend them based on your stated SQL experience. One technique involves joining

Re: cfoutput or cfloop? which is the more practical solution

2010-09-26 Thread Mike Chabot
If you go with the numbers table route, I should clarify that this is a standard technique that is commonly used, so you should be able to find a lot of information by searching on sql server numbers table. I use these all the time. I would think that your numbers table only needs to contain

RE: cfoutput or cfloop? which is the more practical solution

2010-09-26 Thread GLM
I didn't see it working as I only have the dateStart and dateEnd. I guess it's time I learn how a numbers table works. Thx -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Sunday, September 26, 2010 5:21 AM To: cf-talk Subject: Re: cfoutput or cfloop? which

  1   2   3   4   5   6   7   8   9   10   >