Users - Problems with entity-view

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

Users - Problems with entity-view

Dimitri Unruh
Hello all,

could someone please help me with one "small" entity-view?

What is wrong with the definition of my view?

I have to member entities (OrderHeader, TrackingCodeOrder) and as result I
always get one java.lang.NullPointerException

----------------------------

<view-entity entity-name="testview"
            package-name="org.ofbiz.order.order"
            never-cache="true"
            title="testview test">
      <member-entity entity-alias="OH" entity-name="OrderHeader"/>
      <member-entity entity-alias="TO" entity-name="TrackingCodeOrder"/>  
      <alias entity-alias="OH" name="orderId"/>
      <alias entity-alias="OH" name="orderTypeId"/>
      <alias entity-alias="OH" name="orderDate"/>
      <alias entity-alias="OH" name="statusId"/>
      <alias entity-alias="OH" name="createdBy"/>
      <alias entity-alias="OH" name="originFacilityId"/>
      <alias entity-alias="OH" name="productStoreId"/>
      <alias entity-alias="OH" name="grandTotal"/>
      <alias entity-alias="TO" name="trackingCodeId"/>      
      <alias entity-alias="TO" name="trackingCodeTypeId"/>
      <view-link entity-alias="OH" rel-entity-alias="TO">
        <key-map field-name="orderId"/>
        <key-map field-name="trackingCodeTypeId"/>
      </view-link>            
    </view-entity>

-------------------------

Kind regards
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Problems with entity-view

Si Chen-2
How about a little more of your log message??

[hidden email] wrote:

>Hello all,
>
>could someone please help me with one "small" entity-view?
>
>What is wrong with the definition of my view?
>
>I have to member entities (OrderHeader, TrackingCodeOrder) and as result I
>always get one java.lang.NullPointerException
>
>----------------------------
>
><view-entity entity-name="testview"
>            package-name="org.ofbiz.order.order"
>            never-cache="true"
>            title="testview test">
>      <member-entity entity-alias="OH" entity-name="OrderHeader"/>
>      <member-entity entity-alias="TO" entity-name="TrackingCodeOrder"/>  
>      <alias entity-alias="OH" name="orderId"/>
>      <alias entity-alias="OH" name="orderTypeId"/>
>      <alias entity-alias="OH" name="orderDate"/>
>      <alias entity-alias="OH" name="statusId"/>
>      <alias entity-alias="OH" name="createdBy"/>
>      <alias entity-alias="OH" name="originFacilityId"/>
>      <alias entity-alias="OH" name="productStoreId"/>
>      <alias entity-alias="OH" name="grandTotal"/>
>      <alias entity-alias="TO" name="trackingCodeId"/>      
>      <alias entity-alias="TO" name="trackingCodeTypeId"/>
>      <view-link entity-alias="OH" rel-entity-alias="TO">
>        <key-map field-name="orderId"/>
>        <key-map field-name="trackingCodeTypeId"/>
>      </view-link>            
>    </view-entity>
>
>-------------------------
>
>Kind regards
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>  
>
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users