304
Developing Web Applications with ColdFusion
(created using the CFQUERY tag or another custom tag). The
QUERY
attribute is
optional and should only be used by tags that need to process an existing data set.
Returns an object of the
CCFXQuery Class
that represents the query that was passed to
the tag. If no query was passed to the tag,
NULL
is returned. You are not responsible for
freeing the memory allocated for the returned query (it will be freed automatically by
ColdFusion after the request is completed).
Example
The following example retrieves the query that was passed to the tag. If no query was
passed, an exception is thrown:
CCFXQuery* pQuery = pRequest->GetQuery() ;
if ( pQuery == NULL )
{
pRequest->ThrowException(
"Missing QUERY parameter",
"You must pass a QUERY parameter in "
"order for this tag to work correctly." ) ;
}
CCFXRequest::GetSetting
LPCSTR CCFXRequest::GetSetting(LPCSTR
lpszSettingName
)
Retrieves the value of a global custom tag setting. Custom tag settings are stored within
the CustomTags section of the ColdFusion Registry key.
Returns the value of the custom tag setting. If no setting of that name exists, an empty
string is returned.
lpszSettingName
Name of the setting to retrieve (case insensitive).
Example
The following example retrieves the value of a setting named ’VerifyAddress’ and uses
the returned value to determine what actions to take next:
LPCSTR lpszVerify = pRequest->GetSetting("VerifyAddress") ;
BOOL bVerify = atoi(lpszVerify) ;
if ( bVerify == TRUE )
{
// Do address verification...
}
CCFXRequest::ReThrowException
void CCFXRequest::ReThrowException(CCFXException*
e
)
Re-throws an exception that has been caught within an extension procedure. This
function is used to avoid having C++ exceptions thrown by DLL extension code
propagate back into ColdFusion. You should catch ALL C++ exceptions that occur in
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...