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

Reply via email to