Can I do a structure in a structure?  For example, I have a "Customer" that
can contain a "Company" and one for more buying and billing people:

Module  defCustomer.cfm:
<cfscript>
 attributes.Customer.Key=0;
 attributes.Customer.IsCompany = False;
 attributes.Customer.IsDeleted = False;
 attributes.Customer.PeachtreeKey = "";
 attributes.Customer.BuyingPeople = ArrayNew(1);
 attributes.Customer.BillingPeople = ArrayNew(1);
 Company = StructNew();
</cfscript>

<cfmodule template="defcompany.cfm" Customer="#Company#">
<cfset attributes.Customer.Company = StructCopy(Company)>

defCompany.cfm:

<cfscript>
 attributes.Company.Key=0;
 attributes.Company.Name = "";
 attributes.Company.Type = "";
 attributes.Company.IsDeleted = False;
</cfscript>

If I CFDump attributes at the end of defCustomer, Customer.Company shows
empty;  I don't see the defined structure.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to