[OFBiz] Dev - How to filter a field in a <view-entity>
Chris Howe
cjhowe76013 at yahoo.com
Mon Aug 8 15:21:24 EDT 2005
Why would you want to do it from the entity-model? What advantagewould 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
Dev at lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ofbiz.org/pipermail/dev/attachments/20050808/6e25cc5d/attachment.htm
More information about the Dev
mailing list