I've hacked my way around this by overriding my getXIterator method on
my custom XRecord object:


        
        
        <cffunction name="getCNIterator" access="private" output="false"
returntype="reactor.iterator.iterator"
                hint="This is a hack that forces the creation of a new 
CNIterator. I
need it because on some queries I set a join, but on others I must
have it removed. The iterator object does not give me any way to do
this.">
                <cfargument name="reset" default="false" type="boolean">
                
                <cfif arguments.reset AND structKeyExists(variables.children, 
"CNIterator")>
                        <cfset structDelete(variables.children, "CNIterator")>
                </cfif>
                
                <cfreturn super.getCNIterator()>
        </cffunction>

I'd love to avoid this if I can, but for the moment I'm out of options.

On 8/14/06, Mark Stanton <[EMAIL PROTECTED]> wrote:
Hi All

Is there any way to remove a join from an iterator once
getXIterator().join() has been called?

--
Mark Stanton
Gruden Pty Ltd
http://www.gruden.com


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --




--
Mark Stanton
Gruden Pty Ltd
http://www.gruden.com


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to