csteinhilber
Programmer
I'm having a problem recursing through a hierarchy with a query.
I have a custom tag that calls itself, and if a given state is true, I want that current level and all child levels to loop through a resultset:
recursing_monster.cfm-
Problem is, when I loop on the query and recursively call CF_RECURSING_MONSTER, I can get the caller.queryname in the child, but the current row is always 1.
Anybody see any way to actually loop through the query? I've been beating my head against the wall on this for 4 days, and I've lost all ability to look at it subjectively.
Thanks in advance!
-Carl
I have a custom tag that calls itself, and if a given state is true, I want that current level and all child levels to loop through a resultset:
recursing_monster.cfm-
Code:
:
<CFIF hasChildren is TRUE>
<CFIF datasource is TRUE>
<CFLOOP query="queryname" ...>
<CF_RECURSING_MONSTER ...>
</CFLOOP>
<CFELSE>
<CF_RECURSING_MONSTER ...>
</CFIF>
</CFIF>
Process current hierarchy level
<CFOUTPUT>#queryname.fieldname#</CFOUTPUT>, etc.
Problem is, when I loop on the query and recursively call CF_RECURSING_MONSTER, I can get the caller.queryname in the child, but the current row is always 1.
Anybody see any way to actually loop through the query? I've been beating my head against the wall on this for 4 days, and I've lost all ability to look at it subjectively.
Thanks in advance!
-Carl