• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Implementing an ordered tree
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Implementing an ordered tree


  • Subject: Implementing an ordered tree
  • From: Karoly Szantai <email@hidden>
  • Date: Mon, 23 Jan 2006 12:32:45 +0100

Hello,

I have a Category entity. Each Category has zero or more subcategories, which are ordered. There is a root Category (called main category) which has no parent.
I have created this EO model:


oid
oidParentCategory
name
ordinalNumber

parentCategory (oidParentCategory --> oid)
subcategories (oid -->> oidParentCategory)


I need some hints on how to implement the following operations (methods) with "ordered way":


-add a category
-delete a category
-cut & paste a category (and its subcategories) from one level to another level
-reorder categories (move a category in its level)
etc.


My big headache is manipulating the ordinalNumber attribute in "EO way".


Regards, Karoly






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Implementing an ordered tree
      • From: Lachlan Deck <email@hidden>
    • Re: Implementing an ordered tree
      • From: "YL" <email@hidden>
    • Re: Implementing an ordered tree
      • From: Arturo Perez <email@hidden>
  • Prev by Date: Common library, how to
  • Next by Date: Problem with form values, using WOConditional with action within it
  • Previous by thread: Re: Common library, how to
  • Next by thread: Re: Implementing an ordered tree
  • Index(es):
    • Date
    • Thread