Uurgh... Okay heres the code.....() this works..... as the query is on the
same page as the tag...
<!--- I need to think about how to get it into a tag --->
<cfquery name="getUsers" datasource="#request.ssa.event["datasource"]#">
SELECT VAR_Au_Login AS USERNAME, VAR_AU_Password AS PASSWORD,
K_AU_ID,DAT_AU_PasswordDate
FROM Application_Users
</cfquery>
<cf_authenticate query="getUsers">
=======================
as soon as I place the query in a tag thus :
<cf_usercontroller
datasource="#request.ssa.event["datasource"]#"method="get">
where get is a case value which ONLY has the query syntax above.....if I
then try and pass getUsers into <cf_authenticate> it fails asking for
caller.CFQUERYNAME.columnlist, ...
Neil
-----Original Message-----
From: Robertson-Ravo, Neil (REC)
[mailto:[EMAIL PROTECTED]]
Sent: 22 August 2002 14:15
To: CF-Talk
Subject: RE: Caller problem
Nope, it still doesnt like it .... uurgh
-----Original Message-----
From: Robertson-Ravo, Neil (REC)
[mailto:[EMAIL PROTECTED]]
Sent: 22 August 2002 14:08
To: CF-Talk
Subject: RE: Caller problem
I'll get my coat........
-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: 22 August 2002 14:10
To: CF-Talk
Subject: RE: Caller problem
You do pass the query to the tag though, right?
<cf_ct query="#myquery#"> ? And then inside you would use
#attributes.query.columnlist#.
=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire
Email : [EMAIL PROTECTED]
Yahoo IM : cfjedimaster
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Robertson-Ravo, Neil (REC)
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 22, 2002 8:54 AM
> To: CF-Talk
> Subject: RE: Caller problem
>
>
> I am saying exactly that.......with one difference...the
> Query is actually
> in a custom tag...thus .
>
> <cf_myquerytag ....>
> <cf_customtagwhich uses query above..>
>
> this fails on Caller.{QUERYNAME}.COLUMNLIST
>
>
> N
>
>
>
> -----Original Message-----
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: 22 August 2002 13:44
> To: CF-Talk
> Subject: RE: Caller problem
>
>
> Are you saying it's not working then?
>
> ==============================================================
> =========
> Raymond Camden, ColdFusion Jedi Master for Hire
>
> Email : [EMAIL PROTECTED]
> Yahoo IM : cfjedimaster
>
> "My ally is the Force, and a powerful ally it is." - Yoda
>
> > -----Original Message-----
> > From: Robertson-Ravo, Neil (REC)
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 22, 2002 8:34 AM
> > To: CF-Talk
> > Subject: RE: Caller problem
> >
> >
> > Thanks Ray,
> >
> > Once thing though.... the actual logic I have should work
> > then.. giving what
> > you just put..
> >
> > it is this :
> >
> > <query...>
> > <customtag which uses query....>
> >
> >
> > N
> >
> > -----Original Message-----
> > From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> > Sent: 22 August 2002 13:16
> > To: CF-Talk
> > Subject: RE: Caller problem
> >
> >
> > If the only reason you are running a query is to perform
> > authentication,
> > why not move the query into the custom tag? As for the code
> > working when
> > the query is above the CT, remember that CF processes from
> > the top down.
> >
> > For example, you can't do this:
> >
> > <cfoutput>#x#</cfoutput>
> > <cfset x = 1>
> >
> > So it makes sense you can't do:
> >
> > <cf_authent query="blah">
> > <cfquery name="blah"> ... </cfquery>
> >
> > ==============================================================
> > =========
> > Raymond Camden, ColdFusion Jedi Master for Hire
> >
> > Email : [EMAIL PROTECTED]
> > Yahoo IM : cfjedimaster
> >
> > "My ally is the Force, and a powerful ally it is." - Yoda
> >
> > > -----Original Message-----
> > > From: Robertson-Ravo, Neil (REC)
> > > [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, August 22, 2002 7:05 AM
> > > To: CF-Talk
> > > Subject: Caller problem
> > >
> > >
> > > I have a custom tag which relies on getting a query result
> > of users n
> > > passwords for authentication etc.... the tag is called and it
> > > reads in a
> > > query, but it will only work if the query is immediately
> > > above the CT call.
> > >
> > > If I try and place the query into a custom tag itself it
> > > doesnt work... I
> > > get a caller error.... is there anywhere around this?
> > >
> > > i.e.
> > >
> > > <cfquery name="blah">
> > > ....
> > > </cfquery>
> > >
> > > <cf_authent query="blah">
> > >
> > > (This one works......)
> > >
> > >
> > > <cf_users method="get"> (where get holds the query above)
> > >
> > > <cf_authent query="blah">
> > >
> > > (this doesnt, I get a caller error...)
> > >
> > > Its thursday, and I have a Monday brain fart :-) I guess its
> > > because the CT
> > > scope is not available for some reason?
> > >
> > > Neil
> > >
> >
> >
>
>
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists