Hello everyone.

In one CFC I have the following methods:

deconstructComplexGroups()
        
        this returns a struct of lists and works fine by itself

deconstructSimpleGroups()

        this too returns a struct of lists and works fine by itself

gatherDirectReferences()

        again, it returns a struct of lists and works fine by itself

aggregateLists()

        this takes the three structs returned by the methods above,
        combines a few of the lists, removes duplicates from each, and
        returns a single final struct of lists.  

When I individually call the four methods above, in sequence, from my test
page - everything works perfect.  

However, now I'm trying to create a single method that calls the four above
within itself and simply returns the final struct that aggregateLists()
produces... This goal led me to create a new method:

giveMeTheFinalStruct()

        Within this one I simply call each of the others listed above, in
sequence, eventually passing the resulting struct from each of the
first three into aggregateLists(). 

Here's the problem:

CF throws the following error when I call giveMeTheFinalStruct() from my
test page: "The parameter ComplexGroupLists to function aggregateLists is
required but was not passed in."

To be sure the expected struct was in fact being returned from the call to
deconstructComplexGroups() from within giveMeTheFinalStruct(), I simply fed
the output of deconstructComplexGroups() into the return value of
giveMeTheFinalStruct() - and voila... it's not missing afterall.  

I've also done the same for deconstructSimpleGroups() and
gatherDirectReferences(), and each struct is being returned as expected.

But, for some reason passing the struct from the first three methods into
the fourth, aggregateLists(), isn't working.

Could it be that the call to aggregateLists() is being executed before the
other three have finished, and thus - at the time aggregateLists() is called
- the structs in questions don't exist yet?

Is there some fundamental rule I'm forgetting, etc?

It's been a long week, so if this is something elementary I apologize, but
does anyone know why I'm getting this error?

Thanks in advance.

David

 

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to