Ask a Question related to Macromedia ColdFusion, Design and Development.
-
G_Park #1
CF Custom Query
Hi,
I'm getting this error - ' Variable GETARTICLES is undefined.'
Now what I have is a file which calls the custom tag, see below:
example.cfm
<cftry>
<cfquery name="getArticles" datasource="whatever">
select *
from table1,table2
where table1.catID = table2.cat_ID
order by table1.news_date desc
</cfquery>
<cfcatch type="Any">
You need to set up a datasource named <b><i>contacts</i></b> with the file
contacts.mdb to run this example.
</cfcatch>
</cftry>
<cf_direct
query="#getArticles#">
direct.cfm
<cfif thisTag.executionMode eq "end" >
<cfexit method="exittag" />
</cfif>
<cfsetting enablecfoutputonly="Yes">
<cfparam name="attributes.query" type="query">
Now I haven't a clue what I have to do to correct this. Can anyone shed some
light on this?
Thanks
:)
G_Park Guest
-
Need help with building a custom query
Hi everybody. How can I create a custom query based on argument passed to CFC? Here is a sample code: <cffunction name="get_all_brands"... -
return query resultset from custom tag
Hi, How to return an entire query resultset from custom tag to the calling page ? Thanks for your help. vmrao -
Query of Queries on query New type query
In CF5 we have a page that creates a query, using queryNew and querySetCell and the like, we then used dbtype="query" and gave it's name so we could... -
Can't pass a query out of a custom tag
I am attempting to extract a query from a custom tag. I am passing several variables into a custom tag using CFMODULE. I then run a query based... -
Datagrid custom control feature query
Hi, I have a user control in which i am creating dynamically a datagrid control, with the given dataset. But now I would like to add features to... -
Mike Greider #2
Re: CF Custom Query
Hmmm. Where are you getting the error? Inside of direct.cfm? If so, try referencing by caller.getArticles
Mike Greider Guest



Reply With Quote

