Hello,
I am building a simple list of products which have categories which can have
subcategories etc...
How do i go about using the one category table to manage sub categories.
I have tried putting a property in the cfc that points back to itself as per
below. It creates the table when i click deploy but still reports a
conflict. if i try and deploy again, it just gives me a dump of the array.
<cfcomponent name="dmCategory" displayname="Category" extends="
farcry.core.packages.types.types" hint="Custom Type for Category content"
bUseInTree="false" bObjectBroker="true" objectBrokerMaxObjects="1000">
<!--- property definitions --->
<cfproperty ftSeq="1"
ftFieldSet="Category Details"
name="CategoryName"
type="string"
required="true"
hint="Name of a Category"
ftLabel="Category Name"
ftType="string"
ftValidation="required" />
<cfproperty ftSeq="2"
ftFieldSet="Category Details"
name="CategoryDesc"
type="string"
required="false"
hint="Description of a Category"
ftLabel="Category Description"
ftType="string" />
<cfproperty ftSeq="3"
ftFieldSet="Category Details"
name="ParentCategory"
type="array"
required="false"
hint="Parent Category"
ftLabel="Parent Category"
ftType="array"
ftJoin="dmCategory" />
</cfcomponent>
--
Cheers,
Ash
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---