Recursion in Category/Subcategory -Demo for Peter's article
CapableObjects Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


««12

Recursion in Category/Subcategory -Demo for... Expand / Collapse
Author
Message
Posted 2009-11-27 12:30:37
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 2010-05-16 05:14:12
Posts: 63, Visits: 355
Selectable nodes (the main Categories )would fit into a comboBox
Post #4577
Posted 2009-11-27 12:41:13
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 2011-07-14 17:05:00
Posts: 290, Visits: 2 617
If there are not too many for a single combobox then do that. If you can only select leaf nodes then

MyNodeClass.allInstances->select(x | x.childNodes->isEmpty)



====
Pete
Post #4579
Posted 2009-11-27 13:33:41
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 2010-05-16 05:14:12
Posts: 63, Visits: 355
If there are Main Categories A,B & each of them having subcategories A1,A2,A3 ...;B1,B2,B3... and so on  & each of the SubCategories (i.e. A1,A2,a3 etc) having subSubCategories A11,A12,A3 & so on (since they could  potentially have infinite subSubSubcategorees)how would i go about modeling them & then design the GUI with out adding too many comboboxes (since we dont know how many levels the categories would go)

From what I understood recursion would help in having potentially infinit subcategies(as given in your Category model).

The remaining issue seems to be to design a proper GUI for adding any amount of Categories & subCatgories.

Once this  is done ,the user should be able to select a category/subcategory/SubSubCategory ... for the Person classThis is where I need your help.

Hope I have been able to spell out my problem clearly

Post #4581
Posted 2009-11-27 14:54:01
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 2010-05-16 05:14:12
Posts: 63, Visits: 355
Hi Pete

I found this

http://www.malcolmgroves.com/2005/04/14.html#a107

It has a demo too though ECO 3.I will try it out & if there are any issues ,i will post it here.

Thanks for all the help

Post #4584
Posted 2009-12-01 08:40:22
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 2010-05-16 05:14:12
Posts: 63, Visits: 355
I have solved the problem & is working great now.If any one wants the code & the GUI details ,kindly let me know so that I can share it
Post #4595
Posted 2010-04-09 04:34:10
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2010-04-21 23:10:13
Posts: 3, Visits: 26
I'd like to see your example. Did you end up using a tree?
Thanks
Post #5124
« Prev Topic | Next Topic »

««12

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: HansKarlsen, Jonas Hogstrom, PeterMorris

Permissions Expand / Collapse

All times are GMT +1:00, Time now is 10:06

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0,281. 9 queries. Compression Disabled.