You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Michael Brohl (JIRA)" <ji...@apache.org> on 2014/03/30 23:06:15 UTC

[jira] [Comment Edited] (OFBIZ-5210) view-entity cannot be extended

    [ https://issues.apache.org/jira/browse/OFBIZ-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13954832#comment-13954832 ] 

Michael Brohl edited comment on OFBIZ-5210 at 3/30/14 9:04 PM:
---------------------------------------------------------------

I don't think this is a bug. WorkEffortAndPartyAssign is a view entity and cannot be extended.
The entityengine tries to extend the entity WorkEffortAndPartyAssign which does not exist so the error message is correct.

To define an extended view entity you can copy the existing view, rename it and extend inside the view definition as needed.


was (Author: mbrohl):
I don't think this is a bug. WorkEffortAndPartyAssign is a view entity and cannot be extended.
The entityengine tries to extend the entity WorkEffortAndPartyAssign which does not exist so the error message ist correct.

To define an extended view entity you can copy the exiting view, rename it and extend inside the view definition as needed.

> view-entity cannot be extended
> ------------------------------
>
>                 Key: OFBIZ-5210
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5210
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 12.04
>         Environment: Windows / Linux
>            Reporter: Skip Dever
>            Priority: Minor
>             Fix For: Release Branch 12.04
>
>
> For example, add the following to the bottom of entitymodel_view.xml in applications\workeffort\entitydef
>     <extend-entity entity-name="WorkEffortAndPartyAssign">
>         <relation type="one-nofk" title="Current"  rel-entity-name="StatusItem">
>             <key-map field-name="currentStatusId" rel-field-name="statusId"/>
>         </relation>
>         <relation type="one-nofk" rel-entity-name="WorkEffortType">
>             <key-map field-name="workEffortTypeId"/>
>         </relation>
>         <relation type="one-nofk" rel-entity-name="WorkEffortPurposeType">
>             <key-map field-name="workEffortPurposeTypeId"/>
>         </relation>
>     </extend-entity>
> Then, start Ofbiz and you will get an error in the log that WorkEffortAndPartyAssign does not exist.



--
This message was sent by Atlassian JIRA
(v6.2#6252)