You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Bubbly <uv...@gmail.com> on 2010/07/27 11:39:52 UTC

General customization

Hi,

I have tried some first step customizations of ofbiz. And I learned that I
have to edit the basic configuration xmls. So if I install the patch that
would overwrite  my customizations, isnt it? 
If i am changing entitydef.xml, is there any other better way to extend the
entity definition with out touching the out of the box components/files?

Thanking in advance.

Kind regards,
Bubbly
-- 
View this message in context: http://ofbiz.135035.n4.nabble.com/General-customization-tp2303367p2303367.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Re: General customization

Posted by BJ Freeman <bj...@free-man.net>.
I assume you have used ant create-component and now building it.
this way no patches from the Jira will overwrite.
you can add and existing entity def to your component and modify it or 
you can use the extend-entity
if you use and entity with the same name as one that exist your, since 
it is loaded last will overwrite the previous entity def loaded.

Bubbly sent the following on 7/27/2010 2:39 AM:
>
> Hi,
>
> I have tried some first step customizations of ofbiz. And I learned that I
> have to edit the basic configuration xmls. So if I install the patch that
> would overwrite  my customizations, isnt it?
> If i am changing entitydef.xml, is there any other better way to extend the
> entity definition with out touching the out of the box components/files?
>
> Thanking in advance.
>
> Kind regards,
> Bubbly

Re: General customization

Posted by Jacques Le Roux <ja...@les7arts.com>.
Please use rather user ML for such questions/answers, see why here :
http://cwiki.apache.org/confluence/display/OFBADMIN/Mailing+Lists#MailingLists-DesignanddevelopmentList:dev@ofbiz.apache.org

Thanks

Jacques
From: "Wai" <bz...@gmail.com>
> 
> You can extend an existing entity by adding the following (or some form of
> it) in your own entitymodel.xml
> 
> <extend-entity entity-name="someExistingEntityName">
>    <field name="yourExtraFieldInExistingEntity" type="id" />
> </extend-entity>
> 
> -- 
> View this message in context: http://ofbiz.135035.n4.nabble.com/General-customization-tp2303367p2303695.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>


Re: General customization

Posted by Wai <bz...@gmail.com>.
Please check my reply at  "OFBiz - User" mailing list:

http://ofbiz.135035.n4.nabble.com/General-customization-td2303922.html#a2303922
-- 
View this message in context: http://ofbiz.135035.n4.nabble.com/General-customization-tp2303367p2303924.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Re: General customization

Posted by Bubbly <uv...@gmail.com>.
But the new file we create has to be refered in some existing file, rt?

What I am thinking of is a confuguration file that will b touched only by
ppl who customizes, not ppl who develops this product

On 27 July 2010 20:56, Wai [via OFBiz] <
ml-node+2303695-205922205-367998@n4.nabble.com<ml...@n4.nabble.com>
> wrote:

> You can extend an existing entity by adding the following (or some form of
> it) in your own entitymodel.xml
>
> <extend-entity entity-name="someExistingEntityName">
>     <field name="yourExtraFieldInExistingEntity" type="id" />
> </extend-entity>
>
>
> ------------------------------
>  View message @
> http://ofbiz.135035.n4.nabble.com/General-customization-tp2303367p2303695.html
> To unsubscribe from General customization, click here< (link removed) ==>.
>
>
>


-- 
Thanks n regards.

Dhanya Unnithiriparambil

-- 
View this message in context: http://ofbiz.135035.n4.nabble.com/General-customization-tp2303367p2303855.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Re: General customization

Posted by Wai <bz...@gmail.com>.
You can extend an existing entity by adding the following (or some form of
it) in your own entitymodel.xml

<extend-entity entity-name="someExistingEntityName">
    <field name="yourExtraFieldInExistingEntity" type="id" />
</extend-entity>

-- 
View this message in context: http://ofbiz.135035.n4.nabble.com/General-customization-tp2303367p2303695.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.