Adobe COLDFUSION 9 Manual page 488

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
• You do not want to expose the ColdFusion Administrator to users.
• You want to create indexes on servers that you cannot access directly; for example, if you use a hosting company.
When using the
cfcollection
Attribute
Description
action
(Optional) The action to perform on the collection (create, delete, or optimize). The default value for the
attribute is
The name of the new collection, or the name of a collection upon which you perform an action.
collection
path
The location for the Verity collection.
The language.
language
categories
(Optional) Specifies that
categories attribute is set to
You can create a collection by directly assigning a value to the
shown in the following code:
<cfcollection action = "create"
collection = "a_new_collection"
path = "c:\CFusion\verity\collections\">
If you want your users to be able to dynamically supply the name and location for a new collection, use the following
procedures to create form and action pages.
Create a simple collection form page
Create a ColdFusion page with the following content:
1
<html>
<head>
<title>Collection Creation Input Form</title>
</head>
<body>
<h2>Specify a collection</h2>
<form action="collection_create_action.cfm" method="POST">
<p>Collection name:
<input type="text" name="CollectionName" size="25"></p>
<p>What do you want to do with the collection?</p>
<input type="radio"
name="CollectionAction"
value="Create" checked>Create<br>
<input type="radio"
name="CollectionAction"
value="Optimize">Optimize<br>
<input type="submit"
name="submit"
value="Submit">
</form>
</body>
</html>
tag, you can specify the same attributes as in the ColdFusion Administrator:
list
. For more information, see
cfcollection
cfcollection
create a Verity Parametric Index (PI) for this collection. By default, the
False
. To create a collection that uses categories, specify
Last updated 8/5/2010
in CFML Reference.
attribute of the
collection
483
action
Yes
.
tag, as
cfcollection

Advertisement

Table of Contents
loading

Table of Contents