[OFBiz] Dev - NEED HELP

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

[OFBiz] Dev - NEED HELP

CRM-TEAM
Hi...
i want to now how can we filter some values for a field depending on the widget.
for example let x be the field which will be displayed by a drop down
<field name="x" entity-name="somex">
            <drop-down allow-empty="False">
                <entity-options entity-name="somex" key-field-name="x" description="${x}">
                </entity-options>
            </drop-down>
        </field>
now all the values of "x" will be displayed,but this value is  related to other field in another entity let say the field "y" in entity  "somey"
<field name="x" entity-name="somex">
            <drop-down allow-empty="False">
                <entity-options entity-name="somex" key-field-name="x" description="${x}">
                <<<< dont show the values where  x==y >>>>
                </entity-options>
            </drop-down>
        </field>
so how can i do it?
thanks for all...

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

Re: [OFBiz] Dev - NEED HELP

David E. Jones

I'd use a view-entity that joins the 2 together, and then an "entity-
condition" tag here with the operator of not equals.

For more information about "view-entity" check out the Entity Engine  
Guide.

-David


On Aug 1, 2005, at 10:18 AM, CRM-TEAM wrote:

> Hi...
> i want to now how can we filter some values for a field depending  
> on the widget.
> for example let x be the field which will be displayed by a drop down
> <field name="x" entity-name="somex">
>             <drop-down allow-empty="False">
>                 <entity-options entity-name="somex" key-field-
> name="x" description="${x}">
>                 </entity-options>
>             </drop-down>
>         </field>
> now all the values of "x" will be displayed,but this value is  
> related to other field in another entity let say the field "y" in  
> entity  "somey"
> <field name="x" entity-name="somex">
>             <drop-down allow-empty="False">
>                 <entity-options entity-name="somex" key-field-
> name="x" description="${x}">
>                 <<<< dont show the values where  x==y >>>>
>                 </entity-options>
>             </drop-down>
>         </field>
> so how can i do it?
> thanks for all...
>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

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