How to get Category list?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get Category list?

Winster
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: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: How to get Category list?

Sumit  Pandit
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" <[hidden email]>
| To: [hidden email]
| 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: [hidden email]
=====-----=====-----=====
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


Reply | Threaded
Open this post in threaded view
|

Re: How to get Category list?

Winster
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 <[hidden email]> 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" <[hidden email]>
> | To: [hidden email]
> | 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: [hidden email]
> =====-----=====-----=====
> 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: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: How to get Category list?

Sumit  Pandit
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" <[hidden email]>
| To: [hidden email], "Sumit Pandit" <[hidden email]>
| 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 < [hidden email]
| > 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" < [hidden email] >
|
| | | To: [hidden email]
|
| | | 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: [hidden email]
|
| | =====-----=====-----=====
|
| | 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: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: How to get Category list?

Deepak Agarwal-2
Check org.ofbiz.product.category.CategoryServices.java

On Wed, Jan 30, 2013 at 5:09 PM, Sumit Pandit <[hidden email]> 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" <[hidden email]>
> | To: [hidden email], "Sumit Pandit" <[hidden email]>
> | 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 < [hidden email]
> | > 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" < [hidden email] >
> |
> | | | To: [hidden email]
> |
> | | | 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: [hidden email]
> |
> | | =====-----=====-----=====
> |
> | | 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: [hidden email]
>



--
Thanks,
Deepak Agarwal,

Mobile: +91 9501190044
Reply | Threaded
Open this post in threaded view
|

Re: How to get Category list?

Winster
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 <[hidden email]>wrote:

> Check org.ofbiz.product.category.CategoryServices.java
>
> On Wed, Jan 30, 2013 at 5:09 PM, Sumit Pandit <[hidden email]>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" <[hidden email]>
>> | To: [hidden email], "Sumit Pandit" <[hidden email]>
>> | 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 < [hidden email]
>> | > 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" < [hidden email] >
>> |
>> | | | To: [hidden email]
>> |
>> | | | 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: [hidden email]
>> |
>> | | =====-----=====-----=====
>> |
>> | | 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: [hidden email]
>>
>
>
>
> --
> Thanks,
> Deepak Agarwal,
>
> Mobile: +91 9501190044




--
Winster T Jose
Director - Technology and Architecture
Chathurangam Creative Solutions Private Ltd.
Cell: +91-98469 31020
Mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: How to get Category list?

Jacques Le Roux
Administrator
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 <[hidden email]>wrote:
>
>> Check org.ofbiz.product.category.CategoryServices.java
>>
>> On Wed, Jan 30, 2013 at 5:09 PM, Sumit Pandit <[hidden email]>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" <[hidden email]>
>>>> To: [hidden email], "Sumit Pandit" <[hidden email]>
>>>> 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 < [hidden email]
>>>>> 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" < [hidden email] >
>>>>
>>>>>> To: [hidden email]
>>>>
>>>>>> 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: [hidden email]
>>>>
>>>>> =====-----=====-----=====
>>>>
>>>>> 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: [hidden email]
>>>
>>
>>
>>
>> --
>> Thanks,
>> Deepak Agarwal,
>>
>> Mobile: +91 9501190044
Reply | Threaded
Open this post in threaded view
|

Re: How to get Category list?

Winster
Thanks Jacques. I found a recursive method in CategoryWorker. Great!

I need result in a tree format; so I am trying to use the same logic to get
the elements in a Tree.

On Wed, Jan 30, 2013 at 6:59 PM, Jacques Le Roux <
[hidden email]> wrote:

> 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 <[hidden email]
> >wrote:
> >
> >> Check org.ofbiz.product.category.CategoryServices.java
> >>
> >> On Wed, Jan 30, 2013 at 5:09 PM, Sumit Pandit <[hidden email]
> >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" <[hidden email]>
> >>>> To: [hidden email], "Sumit Pandit" <[hidden email]>
> >>>> 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 < [hidden email]
> >>>>> 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" < [hidden email] >
> >>>>
> >>>>>> To: [hidden email]
> >>>>
> >>>>>> 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: [hidden email]
> >>>>
> >>>>> =====-----=====-----=====
> >>>>
> >>>>> 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: [hidden email]
> >>>
> >>
> >>
> >>
> >> --
> >> Thanks,
> >> Deepak Agarwal,
> >>
> >> Mobile: +91 9501190044
>



--
Winster T Jose
Director - Technology and Architecture
Chathurangam Creative Solutions Private Ltd.
Cell: +91-98469 31020
Mail: [hidden email]