House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

cfmodule and query of queries

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Thane Sherrington
02/09/2010 07:58 AM

Hi all,   This is probably a stupid question, but my simple mind can't figure it out.  I'm trying to do the following: 1)Have a cfmodule that does a large query. 2)Have a series of cfmodules that do a query of query on the large query 3)Have a script that calls the cfmodules But I can't figure out how to pass the query from one module to another.  I can do it if I use cfinclude, of course, since all the variables are accessible, but when I try to do it from cfmodule to cfmodule, the query of query modules can't access the large query because it's local to the first cfmodule. Is there away around this? T

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
LRS Scout
02/09/2010 08:09 AM

Set your query as caller.queryName is one way there are others. You should be using a CFC for this and returning the query probably. Hi all,   This is probably a stupid question, but my simple mind can't figure it out.  I'm trying to do the following: 1)Have a cfmodule that does a large query. 2)Have a series of cfmodules that do a query of query on the large query 3)Have a script that calls the cfmodules But I can't figure out how to pass the query from one module to another.  I can do it if I use cfinclude, of course, since all the variables are accessible, but when I try to do it from cfmodule to cfmodule, the query of query modules can't access the large query because it's local to the first cfmodule. Is there away around this? T

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Eric Cobb
02/09/2010 09:03 AM

You should really be doing this in a CFC.  They're built for stuff like this. Thanks, Eric Cobb http://www.cfgears.com ColdFusion - the most profitable "dead" language I've ever worked with. Thane Sherrington wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Claude_Schnéegans
02/09/2010 09:06 AM

>>But I can't figure out how to pass the query from one module to another. You can also set your query in the request scope, ie : request.MyQuery The request scope is visible in any module and sub modules.


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

March 21, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31