adding enumerationgroup

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

adding enumerationgroup

Hans Bakker
For reporting purposes we need to be able to specify saleschannel
groups.

I can imagine it can also be useful for other enumerations

So i would like to add an Entity:

    <entity entity-name="EnumerationGroup"
            package-name="org.ofbiz.common.enum"
            default-resource-name="CommonEntityLabels"
            title="Enumeration group Entity">
      <field name="enumGroupId" type="id-ne"></field>
      <field name="enumId" type="id-ne"></field>
      <prim-key field="enumGroupId"/>
      <prim-key field="enumId"/>
    </entity>    

similar as was done in rev 899365 to add the UomGroup

regards,
Hans

--
http://www.antwebsystems.com :
Quality OFBiz support for competitive rates....

Reply | Threaded
Open this post in threaded view
|

Re: adding enumerationgroup

Jacopo Cappellato-4
Hi Hans,

what if we use EnumerationType for this?
We could use EnumerationType.parentTypeId to define subtypes of existing types of enumerations.

Jacopo

On Feb 1, 2010, at 9:50 AM, Hans Bakker wrote:

> For reporting purposes we need to be able to specify saleschannel
> groups.
>
> I can imagine it can also be useful for other enumerations
>
> So i would like to add an Entity:
>
>    <entity entity-name="EnumerationGroup"
>            package-name="org.ofbiz.common.enum"
>            default-resource-name="CommonEntityLabels"
>            title="Enumeration group Entity">
>      <field name="enumGroupId" type="id-ne"></field>
>      <field name="enumId" type="id-ne"></field>
>      <prim-key field="enumGroupId"/>
>      <prim-key field="enumId"/>
>    </entity>    
>
> similar as was done in rev 899365 to add the UomGroup
>
> regards,
> Hans
>
> --
> http://www.antwebsystems.com :
> Quality OFBiz support for competitive rates....
>

Reply | Threaded
Open this post in threaded view
|

Re: adding enumerationgroup

hans_bakker
sounds good to me, we will try to use that.

thanks for your help Jacopo.

Regards,
Hans

On Mon, 2010-02-01 at 10:09 +0100, Jacopo Cappellato wrote:

> Hi Hans,
>
> what if we use EnumerationType for this?
> We could use EnumerationType.parentTypeId to define subtypes of existing types of enumerations.
>
> Jacopo
>
> On Feb 1, 2010, at 9:50 AM, Hans Bakker wrote:
>
> > For reporting purposes we need to be able to specify saleschannel
> > groups.
> >
> > I can imagine it can also be useful for other enumerations
> >
> > So i would like to add an Entity:
> >
> >    <entity entity-name="EnumerationGroup"
> >            package-name="org.ofbiz.common.enum"
> >            default-resource-name="CommonEntityLabels"
> >            title="Enumeration group Entity">
> >      <field name="enumGroupId" type="id-ne"></field>
> >      <field name="enumId" type="id-ne"></field>
> >      <prim-key field="enumGroupId"/>
> >      <prim-key field="enumId"/>
> >    </entity>    
> >
> > similar as was done in rev 899365 to add the UomGroup
> >
> > regards,
> > Hans
> >
> > --
> > http://www.antwebsystems.com :
> > Quality OFBiz support for competitive rates....
> >
>
--
Antwebsystems.com: Quality OFBiz services for competitive rates