Thanks for this.... I am getting an odd error though, using this tag... I've
copied my tag and the error below.
Re: logic.... What I am trying to do is check to see if a container actually
has an object in it before displaying tables surrounding it. I need the ID's
to check this info.
I have sort of found a way around it, but it is very clunky and I am not
entirely happy about it - I use <cfa_containerGetID> for every container on
the page using the container names.... the thing I don't like about this is
that it requires me to make all assumptions about the page beforehand, when
infact, I'd like to see which containers are present and simply check to see
if they've been used or not.
Here's my tag:
<cfa_siteElementGetChildren
dataSource="#Request.cfa.objectstore.dsn#"
elementName="#pageID#"
elementType="page"
r_stChildren="r_stChildren">
Here's the error I get:
----------------------------------------------------------------------------
----
Error Occurred While Processing Request
Error Diagnostic Information
An error occurred while evaluating the expression:
structKeyExists(server.cfa.siteModel[attributes.datasource].sections,
thisItemID)
Error near line 124, column 8.
----------------------------------------------------------------------------
----
Parameter 2 of function StructKeyExists must be a basic value, i.e., a
string, number, logical, or date/time value
The error occurred while processing an element with a general identifier of
(CFIF), occupying document position (124:3) to (124:90).
Date/Time: 02/07/01 16:29:15
Browser: Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)
Remote Address: 213.121.96.170
----------------------------------------------------------------------------
----
Thanks,
Nikki
----- Original Message -----
From: "Raymond Camden" <[EMAIL PROTECTED]>
To: "Spectra-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 3:33 PM
Subject: RE: Containers on the page...
> Use the r_PageID attribute of CFA_Page. Then you can use
> SiteElementGetChildren like so:
>
> <CFA_SiteElementGetChildren DataSource="#Request.CFA.DataSource.DSN#"
> elementID="#pid#" elementType="page" r_stChildren="kids">
>
> Now, question, why don't you just do:
>
> <CFIF LogicRule blah blah>
> <CFA_Container>
> </CFIF>
>
> Do you need the IDs to determine if they show up or not?
>
> p.s. When you edit containers, a temporary copy is made. These copies
aren't
> cleaned until next time you edit a container. So, be aware that
> SiteElementGetChildren will also get these temporary copies. So, when you
> loop through the children, just ignore where active=0.
>
> =======================================================================
> Raymond Camden, Principal Spectra Compliance Engineer for Allaire
>
> Email : [EMAIL PROTECTED]
> ICQ UIN : 3679482
>
> "My ally is the Force, and a powerful ally it is." - Yoda
>
> > -----Original Message-----
> > From: Nikki Forshaw [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 07, 2001 7:23 AM
> > To: Spectra-Talk
> > Subject: Containers on the page...
> >
> >
> > Hi All,
> >
> > Can anyone tell me how to get a list of containerID's on a
> > specific page? As
> > a return struct or array of some sort based on the pageID... I need to
do
> > this before the containers are actually called, because I need to test
> > against them before allowing them to display.... hmmm... I hope I
> > am making
> > at least a little sense?! :)
> >
> > Any help would be really appreciated!
> >
> > Thanks in advance,
> > Nikki
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.