Re: [OFBiz] Dev - How to filter a field in a <view-entity>

Posted by cjhowe on
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Dev-How-to-filter-a-field-in-a-view-entity-tp165825p165828.html

Why would you want to do it from the entity-model?  What advantage would that have over a the generic java classes from the delegator?
--- Adam Heath wrote:
On Mon, 8 Aug 2005, Si Chen wrote:

> Li Yan,
>
> You define your view-entity in the entitymodel.xml
but you filter it
> using the delegator.find_ methods in your java
code, such as:
>
> delegator.findByAnd("Employee",
UtilMisc.toMap("isDeleted", "N"));

Until such time as I forward port the change that
let's you do it in
entitymodel.

The feature let you:
* create related entities, that were restricted
based on a condition
* create a view-link that was restricted by a
condition.

_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev