My brain must be gone, I can't remember how to create an array of embedded
objects:

I have an object that has a property of an array of objects.

I create the structure to hold the fields of the object, then create the
new object.
<cfscript>
     stFTPServer = structnew();
     stFTPServer.ftpservername = "#obj[objectid].ftpservername#";
     stFTPServer.location = "North America East Coast";
     stFTPServer.url = #obj[objectid].url#;
     stFTPServer.realURL = "#obj[objectid].realURL#";
</cfscript>
<!--- create contentobject of this structure --->
<cfa_contentobjectcreate
datasource="suppContent"
typeID = "#FTPServerTypeID#"
stProperties = "#stFTPServer#"
label = "#obj[objectid].url#"
r_id = "r_stFTPID"
>

Now I need to embed this object into my current object as an array.  This
is why I get stumped.
Can someone show me the code to embed the new object into the parent object
as an array?

Mary


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