I ended up using ContentObjectGetMulitple, returning it to a query and
looping threw the query where queryName.Label EQ the label name that I want
to create setting a flag and then testing.  I could not rely on the date
that the object was created because it is not related to the date that the
object is for(newsletter can be published for the future).  I did try
ContentObjectFind setting the Label attribute EQ to my desired label,
returning the results to a query and then test the recordCount, but that
seems to always be 0.  Might be a scoping issue, but I don't want to play
with it anymore, and the loop works anyway.  

-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 5:01 PM
To: Spectra-Talk
Subject: RE: ContentObjectGet


Are you saying that you only want one object of a type per day? Or one
object of some other criteria per day? All you need to do is use
contentobjectfind and use the date parameters + what other parameter you
care about.

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: Cojocaru, Casey S., AFIS-HQ/IRM [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 22, 2001 3:39 PM
> To: Spectra-Talk
> Subject: ContentObjectGet
>
>
> Greetings,
>
>       This may rank as a silly one today, but I am trying to write a
> custom create method for an object and want to verify that I am
> not creating
> a duplicate object.  The need is to create one object for every
> day that our
> page is created (page is a daily newsletter), and I was hoping to
> track the
> object by its label.  The only way that I can think of to manage
> the object
> is via its label.  My guess would be to do a CFA_CONTENTOBJECTGETMULTIPLE
> for the parent type and loop threw the properties till find the
> date that I
> will try to create.  I could also embed that date label into the metadata
> for the object and test that way, but I felt that label would be easier.
> Any help that is out there would be appreciated.  Thanks, Casey
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.

Reply via email to