|
|
|
Forum 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
|
|
|
|
|
Supreme 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
|
|
|
|
|
Forum 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
|
|
|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 2010-05-16 05:14:12
Posts: 63,
Visits: 355
|
|
|
|
|
|
Forum 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
|
|
|
|
|
Forum 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
|
|
|
|