1. Do a DirectoryExists() to see if the collection name exists as a
directory whereever you keep your collections. All collections get a
new dir that holds all it's data.
2. Do a registry call (CF 5) or an XML file call (CFMX) to read the
admin settings for the collections.
3. Use the factory object to access a list of all collections. This is
the best, but last resort as the factory object is not supported
outside the admin and is a major security risk.
Hello all,
I would like to create a collection if it is not already defined. How
can I do that?
i.e.
<cfif NOT isDefined(collection.mycollection)>
<cfcollection ...>
</cfif>
thanx -
Frank
-----------------------------------------------------------
The Preceeding Email Has Been Scanned
and Verified By QBOS Security Systems
-----------------------------------------------------------
QBOS, Inc.
14275 Midway Rd. Suite 220
Addison, TX 75001
972.233.5066________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

