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>
Is it correct way or instead of using find and then get can i use only find
and filter the objects.
Which method will improve the speed.
Thanks for any help.
Cheers..Ananthi.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.