Hi Oscar,
I started a thread on it quite recently. See
http://www.nabble.com/forum/ViewPost.jtp?post=12018323&framed=y .
I don't see any possibility in the current Entity Engine to do what we want.
I have my own implementation to do this, since there wasn't any interest from OFBiz ML to get this
functionality into OFBiz SVN.
In fact, I seem to have been compiling quite a sizable pile of enhancements I haven't been able to
put back into OFBiz SVN! There are other enhancements, in the Widget department, the Entity
Engine, the Minilang, etc.
If you can help me document this "feature request" in the JIRA issues, help iron out the details
and community requirements and thoughts on this, I'll put in my enhancement right there.
Jonathon
opablo wrote:
Hi all,
Since I began working with OfBiz I missed a feature in its entity
engine: some feature to allow to include some sort of filtering in the
view definition. I'm talking about a code like the following (the
"filter" tag):
<view-entity entity-name="Suppliers"
package-name="the.package.name"
title="List of suppliers">
<member-entity entity-alias="PR" entity-name="Party_Role"/>
<alias-all entity-alias="PR"/>
<view-link entity-alias="PR" rel-entity-alias="P">
<key-map field-name="partyIdFrom" rel-field-name="partyId"/>
</view-link>
<filter entity-alias="PR">
<key-map field-name="roleTypeId" value="SUPPLIER">
</key-map>
</filter>
</view-entity>
I know I can do the filtering when obtaining the data by code just by
adding the filter condition, but when views grow, it is easier to
organize your views into "functional" areas, or even it helps when
querying and browsing data in webtools tab.
Is it in the roadmap for next versions? Has anyone discussed about this
previously?
Thanxs,
Oscar