cheers guys, I am having a mare today.... <cfset "caller.#foo#" = resultset> will do it no problems.
-----Original Message----- From: Rich Wild [mailto:[EMAIL PROTECTED]] Sent: 04 February 2003 10:59 To: '[EMAIL PROTECTED]' Subject: RE: [ cf-dev ] CT > Query to Variable in mytag.cfm ====================== <cfquery datasource="#dsn#" name="myQuery"> SELECT * FROM myTable </cfquery> <cfset setvariable("caller." & attributes.rVariable, duplicate(myQuery))> ====================== in calling template: ====================== <cf_mytag.cfm rVariable="foo"> <cfloop query="foo"> do what you want with the foo query. </cfloop> ====================== > -----Original Message----- > From: Robertson-Ravo, Neil (RX) > [mailto:[EMAIL PROTECTED]] > Sent: 04 February 2003 10:54 > To: '[EMAIL PROTECTED]' > Subject: [ cf-dev ] CT > Query to Variable > > > I am sure I have used this type of code before but it seems to be not > happy......... I have a CT which is getting a pretty big > resultset and I > want to copy it into a userdefined variable like below.. > > <cf_mytag > rVariable = "foo" > > > > > BUT, everything I have tried like copying it onto a > caller,request scope for > the calling page seems to fail?! aargh, I need to kick start my brain > today.... > > Oh, this is on CF45 BTW... > > N > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
