Ccfxrequest::addquery - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

300
virtual void WriteDebug( LPCSTR lpszOutput )
CCFXRequest::WriteDebug
virtual CCFXStringSet* CreateStringSet()
CCFXRequest::CreateStringSet
instance.
virtual void ThrowException( LPCSTR lpszError, LPCSTR lpszDiagnostics )
CCFXRequest::ThrowException
request.
virtual void ReThrowException( CCFXException* e )
CCFXRequest::ReThrowException
virtual void SetCustomData( LPVOID lpvData )
CCFXRequest::SetCustomData
the request.
virtual LPVOID GetCustomData()
CCFXRequest::GetCustomData

CCFXRequest::AddQuery

CCFXQuery* CCFXRequest::AddQuery(LPCSTR lpszName , CCFXStringSet*
pColumns )
Adds a query to the calling template. This query can then be accessed by CFML tags
(for example,
AddQuery
with data, you should call the
functions.
Returns a pointer to the query that was added to the template (an object of class
CCFXQuery
query (it will be freed automatically by ColdFusion after the request is completed).
lpszName
Name of query to add to the template (must be unique).
pColumns
List of columns names to be used in the query.
Example
The following example adds a query named 'People' to the calling template. The query
has two columns ('FirstName' and 'LastName') and two rows:
// Create a string set and add the column names to it
CCFXStringSet* pColumns = pRequest->CreateStringSet() ;
int iFirstName = pColumns->AddString( "FirstName" ) ;
int iLastName = pColumns->AddString( "LastName" ) ;
writes text output into the debug stream.
or
CFOUTPUT
CFTABLE
, the query exists but is empty (that is, it has 0 rows). To populate the query
CCFXQuery::AddRow
). You are not responsible for freeing the memory allocated for the returned
Developing Web Applications with ColdFusion
allocates and returns a new
throws an exception and ends processing of this
re-throws an exception that has been caught.
sets custom (tag specific) data to carry along with
gets the custom (tag specific) data for the request.
) within the template. Note that after calling
and
CCFXQuery::SetData
CCFXStringSet

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

This manual is also suitable for:

Coldfusion 4.5

Table of Contents