I remember I wrote a recursive method long algo and David improved it. I will have a look later...
Jacques Winster Jose wrote: > Thanks again. But this will not fetch all the children ( including children > of children until it reaches a category where there is no child). It just > picks the direct children. > > There is a tree component (render style : simple) which does the purpose, > but unfortunately we can not parse the data from the response. > > On Wed, Jan 30, 2013 at 5:28 PM, Deepak Agarwal <[email protected]>wrote: > >> Check org.ofbiz.product.category.CategoryServices.java >> >> On Wed, Jan 30, 2013 at 5:09 PM, Sumit Pandit <[email protected]>wrote: >> >>> Please have a look at left bar on the same url . It already contains >>> category tree. >>> >>> >>> >>> https://demo-trunk.ofbiz.apache.org/catalog/control/EditCategoryRollup?productCategoryId=CATALOG1 >>> >>> • Please observe following section - Browse Catalogs/Categories >>> >>> Are you looking for something else. >>> >>> -- >>> Thanks And Regards >>> Sumit Pandit >>> Tata Consultancy Services >>> Cell:- 917503046188 >>> ____________________________________________ >>> >>> ----- Original Message ----- >>> >>>> From: "Winster Jose" <[email protected]> >>>> To: [email protected], "Sumit Pandit" <[email protected]> >>>> Sent: Wednesday, January 30, 2013 4:51:46 PM >>>> Subject: Re: How to get Category list? >>> >>>> Thanks for the reply Sumit. But my question is a little different. I >>>> have 2 categories added to root category. Then each of them have >>>> subcategories and that continues to several level. What I am looking >>>> for is a single API which gives me the entire category list in a >>>> tree format. >>> >>>> On Wed, Jan 30, 2013 at 4:47 PM, Sumit Pandit < [email protected] >>>>> wrote: >>> >>>>> For that you need to Create Rollup record with Browse root category >>>>> - >>>> >>>>> >>> https://localhost:8443/catalog/control/EditCategoryRollup?productCategoryId=CATALOG1 >>>> >>> >>>>> -- >>>> >>>>> Thanks And Regards >>>> >>>>> Sumit Pandit >>>> >>>>> Tata Consultancy Services >>>> >>>>> Cell:- 917503046188 >>>> >>>>> ____________________________________________ >>>> >>> >>>>> ----- Original Message ----- >>>> >>> >>>>>> From: "Winster Jose" < [email protected] > >>>> >>>>>> To: [email protected] >>>> >>>>>> Sent: Wednesday, January 30, 2013 4:21:28 PM >>>> >>>>>> Subject: How to get Category list? >>>> >>> >>>>>> Hi, >>>> >>> >>>>>> Is there any way to get all the categories in the BROWSE_ROOT >>>> >>>>>> category as a >>>> >>>>>> tree or something similar? >>>> >>> >>>>>> Regards >>>> >>>>>> Winster T Jose >>>> >>>>>> Director - Technology and Architecture >>>> >>>>>> Chathurangam Creative Solutions Private Ltd. >>>> >>>>>> Cell: +91-98469 31020 >>>> >>>>>> Mail: [email protected] >>>> >>>>> =====-----=====-----===== >>>> >>>>> Notice: The information contained in this e-mail >>>> >>>>> message and/or attachments to it may contain >>>> >>>>> confidential or privileged information. If you are >>>> >>>>> not the intended recipient, any dissemination, use, >>>> >>>>> review, distribution, printing or copying of the >>>> >>>>> information contained in this e-mail message >>>> >>>>> and/or attachments to it are strictly prohibited. If >>>> >>>>> you have received this communication in error, >>>> >>>>> please notify us by reply e-mail or telephone and >>>> >>>>> immediately and permanently delete the message >>>> >>>>> and any attachments. Thank you >>>> >>> >>>> -- >>>> Winster T Jose >>>> Director - Technology and Architecture >>>> Chathurangam Creative Solutions Private Ltd. >>>> Cell: +91-98469 31020 >>>> Mail: [email protected] >>> >> >> >> >> -- >> Thanks, >> Deepak Agarwal, >> >> Mobile: +91 9501190044
