Recursion to retrieve blog thread - help please

2008-11-05 Thread Christophe Maso
this is typically done in a CFC function, or if I'm best off with returntype query, or returntype array, or if maybe this can be done in a single SQL query. But I've a strong feeling that it's done with recursion. Help please? Thanks, Christophe

Re: Recursion to retrieve blog thread - help please

2008-11-05 Thread Jason Fisher
Original call would look something like this, where entryID is all you need to start with: cfset myReplyTreeQry = getChildren(url.entryID, request.datasource) This would create a query result called myReplyTreeQry with the following columns: entryID replyID (of each reply)

Re: Recursion to retrieve blog thread - help please

2008-11-05 Thread Christophe Maso
Thank you very much - this works beautifully! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive:

Recursion Output Help

2008-07-24 Thread Mark Leder
Hi All, Been working on a recursion output for several days now without success. Using a single category table with ID, Name, ParentID. The nesting is up to four layers deep. Problem is, I want to tie the results set to documents that have been posted, with the categoryID referencing

Re: Recursion Output Help

2008-07-24 Thread Gerald Guido
Did you look at this: http://nstree.riaforge.org/ On Thu, Jul 24, 2008 at 1:36 PM, Mark Leder [EMAIL PROTECTED] wrote: Hi All, Been working on a recursion output for several days now without success. Using a single category table with ID, Name, ParentID. The nesting is up to four layers

RE: Recursion Output Help

2008-07-24 Thread Mark Leder
: Recursion Output Help Did you look at this: http://nstree.riaforge.org/ On Thu, Jul 24, 2008 at 1:36 PM, Mark Leder [EMAIL PROTECTED] wrote: Hi All, Been working on a recursion output for several days now without success. Using a single category table with ID, Name, ParentID. The nesting is up

Re: Recursion Output Help

2008-07-24 Thread Gerald Guido
I have a simple recursion example that I used a menu-ing system few years back. Perhaps it may help. http://mgt.pastebin.com/f4ff2f94f On Thu, Jul 24, 2008 at 2:39 PM, Mark Leder [EMAIL PROTECTED] wrote: I did. Couldn't figure out that logic + tree breaks when I only want to return nodes

Re: Recursion problem

2007-09-21 Thread Claude Schneegans
This little factorial function will show you that limit in a hurry IMO, with a factorial function, you will hit a numeric overflow far before any limit in recursion level. I have some recursive functions, got them loop to infinity while debugging, and like in most languages, the only limit I

Re: Recursion problem

2007-09-21 Thread Claude Schneegans
The recordset is not returning the heirarchy correctly however. Please define not correctly -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks.

Re: Recursion problem

2007-09-21 Thread Wil Genovese
, with a factorial function, you will hit a numeric overflow far before any limit in recursion level. I have some recursive functions, got them loop to infinity while debugging, and like in most languages, the only limit I got with CF was memory

Re: Recursion problem

2007-09-21 Thread Claude Schneegans
run it and find out. It is not a memory issue. Of course it is not. Recursing to a level of 1000 is not a problem. As I said, with a factorial function, you will hit an overflow before any limit of recursion or any memory limit. Can ou imagine how large is 1000! ? At a certain point, you hit

Re: Recursion problem

2007-09-21 Thread Mike Little
this is a wondeful tutorial matt! thanks heaps for the link. a lot is a little over my head, but i am getting there!! mike http://tutorial478.easycfm.com/ ~| Check out the new features and enhancements in the latest product

Recursion problem

2007-09-20 Thread Mike | NZSolutions Ltd
Hi guys, I am attempting to create a limitless level category system. This is what I have so far... Calling page... cfoutput #application.category.display_categories(0)# /cfoutput Cfc... cffunction name=get_categories output=false access=public returntype=query cfargument

Re: Recursion problem

2007-09-20 Thread Wil Genovese
I'm not sure how many levels of recursion your trying to do, but with CF there is a limit to recursion. This little factorial function will show you that limit in a hurry if you put in a large enough value. cffunction name=factorial access=public returntype=numeric output=yes cfargument

Re: Recursion problem

2007-09-20 Thread Mike Little
i will only ever be going 2-3 levels deep at this stage. I'm not sure how many levels of recursion your trying to do, but with CF there is a limit to recursion. This little factorial function will show you that limit in a hurry if you put in a large enough value. cffunction name=factorial

Re: Recursion problem

2007-09-20 Thread James Holmes
You can get the whole structure on one query: http://www.oreilly.com/catalog/sqlpr/chapter/ch01.pdf On 9/21/07, Mike Little [EMAIL PROTECTED] wrote: i will only ever be going 2-3 levels deep at this stage. I'm not sure how many levels of recursion your trying to do, but with CF

Re: Recursion problem

2007-09-20 Thread Matt Quackenbush
http://tutorial478.easycfm.com/ ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Re: OT: Open DNS Server / Recursion

2006-10-30 Thread Tom Chiverton
On Thursday 26 October 2006 19:14, Eric Haskins wrote: Dont block DNS requests at the firewall. Your customers wont be happy when their sites dont resolve :) 90% of the time it's cheaper and easier to have someone else run the DNS. -- Tom Chiverton Helping to autoschediastically architect

RE: Open DNS Server / Recursion

2006-10-27 Thread Jenny Gavin-Wear
The problem is that with Recursion enabled on a DNS server hosting domain is it allows IP forging for spammers. (From what I have read.) I have some pillock spammer forging my IP through this method. I have been told by my hosting company that I need to sort this out. With recursion turned off

Re: Open DNS Server / Recursion

2006-10-27 Thread Eric Haskins
Run a second internal recursive DNS server for your local users. Then set your DNS Server for your domains without recursion. Eric Haskins Web Systems Developer Rooms To Go On 10/27/06, Jenny Gavin-Wear [EMAIL PROTECTED] wrote: The problem is that with Recursion enabled on a DNS server

RE: Open DNS Server / Recursion

2006-10-27 Thread Dennis Powers
to issue recursive queries allow-query {any;}; allow-recursion {12.199.124.0/23;}; }; Best Regards, Dennis Powers UXB Internet - A website design and Hosting Company 690 Wolcott Road P.O. Box 6029 Wolcott, CT 06716 Tel: (203)879-2844 http://www.uxbinternet.com/ http://www.uxb.net

OT: Open DNS Server / Recursion

2006-10-26 Thread Jenny Gavin-Wear
Totally off topic. I run DNS servers for a number of domains and also mail servers for those domains. I have a problem in that when I disable Recursive look ups the DNS servers then fail to answer DNS queries from the local IP addresses. Any ideas anyone please? Jenny Jennifer Gavin-Wear Fast

Re: OT: Open DNS Server / Recursion

2006-10-26 Thread Tom Chiverton
On Thursday 26 October 2006 13:43, Jenny Gavin-Wear wrote: I have a problem in that when I disable Recursive look ups the DNS servers then fail to answer DNS queries from the local IP addresses. Any ideas anyone please? Don't turn recursive lookups off :-) They are what makes your DNS server

Re: OT: Open DNS Server / Recursion

2006-10-26 Thread Eric Haskins
Dont block DNS requests at the firewall. Your customers wont be happy when their sites dont resolve :) We have recursion turned off on our DotCom DNS because we only host 6 Domains. All our coporate users use a Recursing DNS server to do their surfing. So if it is for both Surfing and Hosting

RE: Open DNS Server / Recursion

2006-10-26 Thread Russ
using other dns servers. Russ -Original Message- From: Jenny Gavin-Wear [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 8:44 AM To: CF-Talk Subject: OT: Open DNS Server / Recursion Totally off topic. I run DNS servers for a number of domains and also mail servers

Re: Recursion anyone?

2005-10-27 Thread Stephen Whiteley
Thanks David, I get that:) Steve ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for

Recursion anyone?

2005-10-26 Thread Stephen Whiteley
Hi I keep returning to this problem in order to build an infinite DHTML menu (a task which has now become a quest and a matter of honour). Does anyone know how to recurse through an adjacency list model table, of the following setup ID CategoryName ParentItemID Also, I hear you can use CFTREE

Re: Recursion anyone?

2005-10-26 Thread Thomas Chiverton
On Wednesday 26 October 2005 11:15, Stephen Whiteley wrote: know how to recurse through an adjacency list model table, of the following setup ID CategoryName ParentItemID topLevel=getNodesWithNoParent() foreach thisNode in topLevel{ print thisNode getChildren(thisNode) }

RE: Recursion anyone?

2005-10-26 Thread Kerry
) writeoutput(your javascript); buildmenu(variables.inst.menuqry.id[i]); } } } buildmenu(yourrootid); -Original Message- From: Stephen Whiteley [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 11:15 To: CF-Talk Subject: Recursion anyone? Hi I keep

Re: Recursion anyone?

2005-10-26 Thread James Holmes
Depending on your DB you may be able to do the recursion there rather than in the CF or JS code: http://www.oreilly.com/catalog/sqlpr/chapter/ch01.pdf On 10/26/05, Stephen Whiteley [EMAIL PROTECTED] wrote: Hi I keep returning to this problem in order to build an infinite DHTML menu (a task

RE: Recursion anyone?

2005-10-26 Thread Snake
Message- From: Stephen Whiteley [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 11:15 To: CF-Talk Subject: Recursion anyone? Hi I keep returning to this problem in order to build an infinite DHTML menu (a task which has now become a quest and a matter of honour). Does anyone know how

Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
Hi Yes the problem is the recursion can't get my head round it, never used CFSCRIPT before being a bit of a newbie. Not trying to build a DHTML menu from scratch and would use an off the shelf one. CFTREE in CFMX 7 will output xml or a structure depending on format= used. I'll keep playing

Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
OK, this is my database setup ItemID,ParentItemID,AdCategoryName What I want to be able to do is output something like this (before I go to the DHTML menu stage, walk before I can run) Accommodation Self Catering Farmhouse Rustic Farmhouse Activities Walking Walking Routes Walking Shops etc.

RE: Recursion anyone?

2005-10-26 Thread Andy Matthews
--//- -Original Message- From: Stephen Whiteley [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 26, 2005 6:11 AM To: CF-Talk Subject: Re: Recursion anyone? Hi Yes the problem is the recursion can't get my head round it, never used CFSCRIPT before being a bit of a newbie. Not trying to build

Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
Kerry I'm trying to get you code to work but will be making a real hash of it, I wonder if you take a look at this, I think getting the query in is the problem. cfquery datasource=#DSN# name=getAllCategories SELECT itemid,parentitemid,adcategoryname FROM tblAdvertTypes /cfquery cfscript

RE: Recursion anyone?

2005-10-26 Thread Kerry
give you the first record's categoryname. when doing a for() loop, you _must_ use the counter variables.menuqry.adcategoryname[i] Good luck! -Original Message- From: Stephen Whiteley [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 14:51 To: CF-Talk Subject: Re: Recursion anyone? Kerry

Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
Thanks Kerry I'm starting to understand, got no experience of cfscript but it seems a lot like actionscript. Unfortunately I've tried to run the code and I'm getting the following error. Context validation error for tag cfscript. The start tag must have a matching end tag. An explicit end

RE: Recursion anyone?

2005-10-26 Thread Andy Matthews
- From: Stephen Whiteley [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 26, 2005 9:30 AM To: CF-Talk Subject: Re: Recursion anyone? Thanks Kerry I'm starting to understand, got no experience of cfscript but it seems a lot like actionscript. Unfortunately I've tried to run the code and I'm

RE: Recursion anyone?

2005-10-26 Thread Emmet McGovern
Here's a use of treeview.nets treeview with recursion. http://fullcitymedia.com/apps/treeview You can download the code here. http://fullcitymedia.com/apps/treeview/treeview.zip Take a look, might be similar to what you're looking for. Emmet -Original Message- From: Stephen Whiteley

Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
Thanks, missed that Still throwing an error though Variable PARENTITEMID is undefined. The error occurred in C:\Inetpub\wwwroot\bigtripper\recurse\testfunction.cfm: line 11 9 : function buildmenu(currentid,depth){ 10 : var i=0; 11 : for(i=1; i lte parentitemid.menuqry.recordcount;

RE: Recursion anyone?

2005-10-26 Thread Kerry
errors in your code is pushing it. -Original Message- From: Stephen Whiteley [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 15:52 To: CF-Talk Subject: Re: Recursion anyone? Thanks, missed that Still throwing an error though Variable PARENTITEMID is undefined. The error occurred in C

RE: Recursion anyone?

2005-10-26 Thread Kerry
buildmenu(10,0); /cfscript -Original Message- From: Stephen Whiteley [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 15:30 To: CF-Talk Subject: Re: Recursion anyone? Thanks Kerry I'm starting to understand, got no experience of cfscript but it seems a lot like actionscript

Re: Recursion anyone?

2005-10-26 Thread Thomas Chiverton
On Wednesday 26 October 2005 16:03, Kerry wrote: dude, I dont mind helping with the overall how do i do this, but asking me to debug simple errors in your code is pushing it. This is why most of the time I will only post pseudo-code, unless there is some important point the code needs to get

RE: Recursion anyone?

2005-10-26 Thread Kerry
Just had a read of the code, it does 2 queries for every parent in the database? Did I read that correctly? -Original Message- From: Emmet McGovern [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 15:49 To: CF-Talk Subject: RE: Recursion anyone? Here's a use of treeview.nets treeview

RE: Recursion anyone?

2005-10-26 Thread Kerry
make that 1 query for every parent, + 1 query for each child of each parent. -Original Message- From: Emmet McGovern [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 15:49 To: CF-Talk Subject: RE: Recursion anyone? Here's a use of treeview.nets treeview with recursion. http

RE: Recursion anyone?

2005-10-26 Thread Emmet McGovern
at it for some time. Emmet -Original Message- From: Kerry [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 26, 2005 12:23 PM To: CF-Talk Subject: RE: Recursion anyone? make that 1 query for every parent, + 1 query for each child of each parent. -Original Message- From: Emmet

Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
if I hacked anyone off - the ease of basic Coldfusion means that not everyone who uses it is a full-on programmer with a computer-science degree. So difficult to debug code when you're not 100% sure what it does! I eventually found an off the peg DHTML and recursion solution here http

Re: Recursion anyone?

2005-10-26 Thread David Livingston
An easy way to do recursion in cf is to use a custom tag. One of the things you will have to do is have your top level be set to a parent id that wont get used in any levels below it. I like to set the top level to zero or one. The first time you call your custom tag you just pass the top

Creating a List from a Recursion

2004-08-24 Thread Anne Girardeau
I've created a custom tag that recurses over a database to create a breadcrumb trail.The problem I'm encountering is I would really like to be able to pull a list from that tag that it can then be easily manipulated.Below is the custom tag code: cfquery name=checkParent

Re: Creating a List from a Recursion

2004-08-24 Thread John Beynon
valuelist() perhaps? jb. On Tue, 24 Aug 2004 09:53:04 -0400, Anne Girardeau [EMAIL PROTECTED] wrote: I've created a custom tag that recurses over a database to create a breadcrumb trail.The problem I'm encountering is I would really like to be able to pull a list from that tag that it can then

Re: Creating a List from a Recursion

2004-08-24 Thread Anne Girardeau
I don't think that will work in a recursion judging by what I've read about it.It seems it just takes data from a query column and creates a list out of it. But, that's assuming all of the data needed for the list is there on the first query.Since I'm dealing with a recursion, the query

Re: Creating a List from a Recursion

2004-08-24 Thread Joe Rinehart
intensive, but require more development that I can't go into right now because my dev server just came back up. Cheers, Joe - Original Message - From: Anne Girardeau [EMAIL PROTECTED] Date: Tue, 24 Aug 2004 10:48:03 -0400 Subject: Re: Creating a List from a Recursion To: CF-Talk [EMAIL

Re: Creating a List from a Recursion

2004-08-24 Thread Anne Girardeau
Hey Joe, Thanks for your input.Actually I figured something out using session variables and it works amazingly well. The performance of it also isn't too terrible since the most the script should ever recurse would be 5 or 6 times, if that. I am, however, intrigued by your comment about having

Re: Creating a List from a Recursion

2004-08-24 Thread Barney Boisvert
I'd recommend using the request scope, rather than the session scope. A breadcrumb display is not bound to a user session in any way, it's strictly related to the current request. Joe's suggestion to use the custom tag framework that CF provides is superior even to that, because it allows

Re: Creating a List from a Recursion

2004-08-24 Thread Anne Girardeau
Thanks for the tip barneyb, I replaced session with request and it still works beautifully. I agree that it's not much of an issue with breadcrumb generation.I'm never going to need more than one set of breadcrumbs on a requesting page so hopefully I'm pretty safe with what I have. Thanks again,

RE: Creating a List from a Recursion

2004-08-24 Thread Dennis Powers
Currently the breadcrumbs display directly from the custom tag which works relatively well.Except there are instances when I would really like to have the data placed into a list. Any ideas how I could accomplish this? You need to build the list successively with each recursion and then pass

RE: DHTML recursion problem

2004-07-29 Thread Micha Schopman
Just a word of advice, place the entire business logic of recursion in a stored procedure. What you do know, is make numerous calls to the database server, which is by far, more slower and cpu intensive than putting the job at SQL Server. tSQL gives you enough functions and possibilities to get

Re: DHTML recursion problem

2004-07-29 Thread Metzy Martinez
It's extremely fustrating. I'm trying to convert JAVA code into coldFusion and i tried to go with CFTREE but there is a problem with it ColdFusion 5 server. I tried to implement the recursive tree function found in the o'reilly ColdFusion 5 book. that of course is using CFtree. ughhh. thanks for

ColdFusion/DHTML recursion tree

2004-07-28 Thread Metzy Martinez
Hello, I'm trying to create windows explorer style directory structure. And I'm some issues. My folder end up nesting inside of themselves. Here is my code its a custom tag that calls itself when it finds children cfoutput cfif isdefined(attributes.parentItemIdx) cfset

DHTML recursion problem

2004-07-28 Thread Metzy Martinez
Hello, I'm trying to create windows explorer style directory structure. And I'm some issues. My folder end up nesting inside of themselves. Here is my code its a custom tag that calls itself when it finds children cfoutput cfif isdefined(attributes.parentItemIdx) cfset

Re: ColdFusion/DHTML recursion tree

2004-07-28 Thread Matt Robertson
Not sure what the question is here. However, I built one of these, and released it as a free tag.It doesn't use layers or anything fancy.The code is very, very simple, the tree is persistent and the html is easy to modify to whatever suits you.I came up with a color-coded variant that uses colors

Re: DHTML recursion problem

2004-07-28 Thread stylo stylo
I don't know, but it's a nasty way to do it. First of all, you don't need to call every function in the onclick (lowercase, not camelCase). Just send the needed var to a function and go from there. Secondly, you should not even have cf put onclick inline; just have a class on the nec. menu

Using recursion with query results

2004-05-17 Thread nancy . tracy
I'm trying to build a recursive routine that will go through my query results and display them in a tree structure.There are four fields in each row of my results.Is it possible for me to pass an entire row of my query results to a custom tag?If so, when I come back out of my recursive routine,

RE: Using recursion with query results

2004-05-17 Thread Barney Boisvert
] Sent: Monday, May 17, 2004 1:12 PM To: CF-Talk Subject: Using recursion with query results I'm trying to build a recursive routine that will go through my query results and display them in a tree structure.There are four fields in each row of my results.Is it possible for me to pass

RE: Using recursion with query results

2004-05-17 Thread Ian Skinner
I think your friend may be the array notion for a ColdFusion record set.Try playing with these and see if this doesn't lead somewhere. The following forms are perfectly legal ways to reference record sets. query.columnName[row] query[columnName][row] Also if you are using a cfoutput

Re:strange cfc recursion issue...

2004-01-21 Thread Isaac Dealey
Not that it helps much, but I took your same code and had no issues when I cfdumped the result of getMetaData on an instance of it. You running MX 6.1? Yeah, I'm running Red Sky ... Turned out Sean was right, I had accidentally horqued up the meta data prior and needed to restart the cf server to

strange cfc recursion issue...

2004-01-19 Thread S . Isaac Dealey
I've got this issue with a component I've been working on... it's trully bizarre... a description of the issue is on my blog here: http://www.turnkey.to/ontap/blog/?20040119 Any suggestions greatly appreciated. The cfc code is here (sorry for the line breaks): cfcomponent displayname=ontap

RE: strange cfc recursion issue...

2004-01-19 Thread Raymond Camden
As just an FYI, when calling methods inside a CFC, you should NOT use this.METHOD() instead, you should use METHOD() Why? When you use this.METHOD(), it acts as if you were calling the method from the outside. That means you will be prevented from calling private methods. [Todays Threads]

RE: strange cfc recursion issue...

2004-01-19 Thread Raymond Camden
Not that it helps much, but I took your same code and had no issues when I cfdumped the result of getMetaData on an instance of it. You running MX 6.1? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: Recursion and Breadcrumbs

2003-12-03 Thread Andre Turrettini
Jake, I did something that might help you.Its a recursive function that uses one db call.You can see it at work by creating an account and creating a survey here.www.surveys.theanticool.com http://www.surveys.theanticool.com .The interface to create the survey uses only ie at this point(I know I

RE: Recursion and Breadcrumbs

2003-11-25 Thread Dominik Schlaepfer
Hi Jake There is an article about recursion from Steve Majewski on defusion.com. I think this article answers your questions. http://www.defusion.com/articles/index.cfm?ArticleID=63 HTH Dominik -Original Message- From: Jake McKee [mailto:[EMAIL PROTECTED] Sent: Monday, November 24

RE: Recursion and Breadcrumbs

2003-11-25 Thread Dominik Schlaepfer
The problem with that article is that it uses the CF_MakeTree tag, which I'm not able to use. Any other ideas? There is an article about recursion from Steve Majewski on defusion. com. I think this article answers your questions. http://www.defusion.com/articles/index.cfm?ArticleID=63 [Todays

Recursion and Breadcrumbs

2003-11-24 Thread Jake McKee
After searching high and low, I've found quite a few discussions about using recursion to create breadcrumbs, and other nested categorical info. It seems to be a pretty common question, and I would expect that there is a common solution out there, but I can't seem to find one. I'm trying

RE: Recursion and Breadcrumbs

2003-11-24 Thread Hagan, Ryan Mr (Contractor ACI)
list_categories( Val(currQuery.catId) ) /cfloop cfreturn returnString /cffunction -Original Message- From: Jake McKee [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 1:51 PM To: CF-Talk Subject: Recursion and Breadcrumbs After searching high and low, I've found quite a few

problems with recursion in cfmx

2003-10-08 Thread Jason Wagstaff
I don't know if this is a possible bug (or maybe i am doing something wrong), but when using recursion with a query in the function scope it is overwritten on the next call of the function.i did find a workaround, but want to know is what is intended. I have this function which orders sibilings

RE: problems with recursion in cfmx

2003-10-08 Thread Adrian Lynch
In your query put cfset var getStandardRet = / That may help. Ade -Original Message- From: Jason Wagstaff [mailto:[EMAIL PROTECTED] Sent: 08 October 2003 15:04 To: CF-Talk Subject: problems with recursion in cfmx I don't know if this is a possible bug (or maybe i am doing

RE: problems with recursion in cfmx

2003-10-08 Thread Adrian Lynch
Ignore that. I meant to say, in the recursive functions, locally scope your queries. cfset var yourQuery = / should do it. Ade -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: 08 October 2003 15:08 To: CF-Talk Subject: RE: problems with recursion in cfmx

RE: problems with recursion in cfmx

2003-10-08 Thread Jason Wagstaff
:[EMAIL PROTECTED] Sent: 08 October 2003 15:08 To: CF-Talk Subject: RE: problems with recursion in cfmx In your query put cfset var getStandardRet = / That may help. Ade -Original Message- From: Jason Wagstaff [mailto:[EMAIL PROTECTED] Sent: 08 October 2003 15:04

RE: problems with recursion in cfmx

2003-10-08 Thread Adrian Lynch
=#VARIABLES# / Also, does anyone know a similar way to see all var scoped variables? Dumping var doesn't work. Ade -Original Message- From: Jason Wagstaff [mailto:[EMAIL PROTECTED] Sent: 08 October 2003 15:54 To: CF-Talk Subject: RE: problems with recursion in cfmx --- Adrian Lynch [EMAIL

RE: problems with recursion in cfmx

2003-10-08 Thread Tim Blair
but is this what is supppose to happen/intended? Yes. Any unscoped variable that is created in a function body is automatically placed in the variables scope, which is global and not localised to the function, hence future iterations of the same function can read/overwrite that value.To

RE: problems with recursion in cfmx

2003-10-08 Thread Raymond Camden
Also, does anyone know a similar way to see all var scoped variables? Dumping var doesn't work. You can't - however - if you need to, simply do: cfset var local = structNew() and place all your crap in local, then you can inspect it at will. [Todays Threads] [This Message]

RE: problems with recursion in cfmx

2003-10-08 Thread Jason Wagstaff
--- Tim Blair [EMAIL PROTECTED] wrote: but is this what is supppose to happen/intended? Yes. Any unscoped variable that is created in a function body is automatically placed in the variables scope, which is global and not localised to the function, hence future iterations of the same

Recursion and Scope problem?

2003-09-18 Thread Cedric Villat
Ok, I'm doing a bit of recursion, and my variables seem to be overwriting themselves, which makes no sense to me. Here is my code: cffunction name=getDTreeWidth returntype=numeric cfargument name=node type=string required=yes cfargument name=level type=numeric required=yes cfset root_node

RE: Recursion and Scope problem?

2003-09-18 Thread Hagan, Ryan Mr (Contractor ACI)
Try using the var keyword in your first four cfset statements. cfset var root_node = Arguments.node cfset var levels = ... -Original Message- From: Cedric Villat [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 12:59 PM To: CF-Talk Subject: Recursion and Scope problem? Ok

RE: Recursion and Scope problem?

2003-09-18 Thread Ian Skinner
statements. cfset var root_node = Arguments.node cfset var levels = ... -Original Message- From: Cedric Villat [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 12:59 PM To: CF-Talk Subject: Recursion and Scope problem? Ok, I'm doing a bit of recursion, and my variables seem

RE: Recursion and Scope problem?

2003-09-18 Thread Hagan, Ryan Mr (Contractor ACI)
cfset var levels = ... -Original Message- From: Cedric Villat [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 12:59 PM To: CF-Talk Subject: Recursion and Scope problem? Ok, I'm doing a bit of recursion, and my variables seem to be overwriting themselves, which makes no sense

RE: Recursion and Scope problem?

2003-09-18 Thread Andre Turrettini
To: CF-Talk Subject: Recursion and Scope problem? Ok, I'm doing a bit of recursion, and my variables seem to be overwriting themselves, which makes no sense to me. Here is my code: cffunction name=getDTreeWidth returntype=numeric cfargument name=node type=string required=yes cfargument name=level

recursion in cold fusion ( was RE: Creating a list with infinite groupings and indents )

2003-07-09 Thread Hagan, Ryan Mr (Contractor ACI)
if I'm wrong) to the entire page, even inside of functions. In other words, unlike PHP, CFMX functions do not have their own scope separate from the rest of the page, so in the above recursive function, I would be clobbering my $result variable each time through the recursion. I've got a workaround

RE: recursion in cold fusion ( was RE: Creating a list with infin ite groupings and indents )

2003-07-09 Thread Ian Skinner
=#Attributes.Current# level = #Level# /cfif /cfloop END -- Ian Skinner Web Programmer BloodSource Sacramento, CA -Original Message- From: Hagan, Ryan Mr (Contractor ACI) [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 1:14 PM To: CF-Talk Subject: recursion

Re: recursion in cold fusion ( was RE: Creating a list with infinite groupings and indents )

2003-07-09 Thread Paul Hastings
First and foremost, we can't run queries inside of cfscript tags. Bummer. easy enough with a wrapper function. Second, even if the query issue were resolved (and if you've got ideas for work-arounds, I'd love to hear them), you've now got variable scope issues. A variable declared in a CFMX

Re: recursion in cold fusion ( was RE: Creating a list with infinite groupings and indents )

2003-07-09 Thread Sean A Corfield
On Wednesday, Jul 9, 2003, at 13:13 US/Pacific, Hagan, Ryan Mr (Contractor ACI) wrote: function list_categories( $parentId, $level ) { cffunction name=list_categories cfargument name=parentId type=numeric cfargument name=level type=numeric global $database, $connection;

RE: recursion in cold fusion ( was RE: Creating a list with infinite groupings and indents )

2003-07-09 Thread Barney Boisvert
: 360.647.5351 www.audiencecentral.com -Original Message- From: Paul Hastings [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 1:33 PM To: CF-Talk Subject: Re: recursion in cold fusion ( was RE: Creating a list with infinite groupings and indents ) First and foremost, we

Re: recursion in cold fusion ( was RE: Creating a list with infinite groupings and indents )

2003-07-09 Thread Jochem van Dieten
that? So where does that leave us? I'd be interested in some info on CFMX CFCs. Can I use recursion in a CFC function? Sure you can. A lot of problems that are solved with recursion can be rewritten using while loops. For this particular problem, though, I've not been able to come up

RE: Recursion Tutorial?

2003-05-30 Thread webguy
Subject: Re: Recursion Tutorial? Howdy Jake, Tuesday, May 27, 2003, 11:16:23 PM, Jake McKee wrote: ... I am looking for good sources of help/tutorial on recursion. ... Here's some links I've collected. Most of them relate to hierarchical database design but you may find them useful anyway

Re: Recursion Tutorial?

2003-05-30 Thread Chris Montgomery
Some more links on recursion I just found: http://cfhub.com/advanced/customtags/recursion.cfm http://www.cfhub.com/tutorials/ftp2tree/recursion.cfm In addition, you might want to search the CF-Talk archives for the following subject lines: CF recursive question Recursive parent/child

Re: Recursion Tutorial?

2003-05-29 Thread Chris Montgomery
Howdy Jake, Tuesday, May 27, 2003, 11:16:23 PM, Jake McKee wrote: ... I am looking for good sources of help/tutorial on recursion. ... Here's some links I've collected. Most of them relate to hierarchical database design but you may find them useful anyway. The last article shows a way to do

RE: Help with CFC and recursion?

2003-05-27 Thread Shawn Grover
proceed with the presentation layer. Thanks for the input on recursion, and some tips on CFProperty - on which I have not been able to find any great details. Shawn -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED] Sent: Monday, May 26, 2003 8:07 PM To: CF-Talk Subject: Re

Re: Help with CFC and recursion?

2003-05-27 Thread Sean A Corfield
On Tuesday, May 27, 2003, at 13:14 US/Pacific, Shawn Grover wrote: As for my use of the CFPROPERTY tags, I know they are kinda useless in the manner I'm using them, EXCEPT for documentation. And of course it all depends on whether you want to use public data members - this scope - which you

RE: Help with CFC and recursion?

2003-05-27 Thread Shawn Grover
:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 4:10 PM To: CF-Talk Subject: Re: Help with CFC and recursion? snip/ Are other folks relying on cfproperty for auto-documenting public data members? How do you deal with keeping the cfproperty tags in sync with what you actually do with this scope

Re: Help with CFC and recursion?

2003-05-27 Thread Sean A Corfield
On Tuesday, May 27, 2003, at 16:20 US/Pacific, Shawn Grover wrote: We're declaring a Clear function which initializes the THIS properties to a valid, known state. Our procedure is to ensure the clear function matches the CFPROPERTY declarations, and we call the Clear function when the

  1   2   >