This is not the correct way of using coFind. Err, well, it works, but is not
the best way. Read the docs on coFind and you will see that you can have the
tag both restrict it's matches by TYPE and look for certain properties by
passing a structure to stProperties.

=======================================================================
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: ananthi [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 07, 2001 9:51 PM
> To: Spectra-Talk
> Subject: How to improve the performance
>
>
> Hi all,
>
>  I am having one doubt.
>
> I am having 200 objects of a particular type, and i want to find out some
> objects in that type which matches with some conditions.
> So what i am doing is ,
>
> 1. Get all the objects of that type by using the <cfa_contentobjectfind>
> 2. Loop through the list and get the properties of that object by using
> <cfa_contentobjectget> tag, and match the properities by using if
> condition.
>
> For example,
> <cfa_contentObjectFind  dataSource= "XXX" typeID  = "XXXXX" r_lObjects =
> "contentobj"
>   bactiveonly  ="no">
> <cfloop list="#contentobj#" index="i" delimiters=",">
>     <cfa_contentObjectGet dataSource= "#Application.masdsn#" objectID =
> "#i#" r_stObject = "stparentloc">
>      <cfif #variable1# eq #stparentloc.name#>
>          .............
>         .............
>      </cfif>
>    </cfloop>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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