You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Anurag Walia <wa...@hotmail.com> on 2012/07/25 16:27:14 UTC

I need to retrieve a list from entity.

Hello All,

I need you help.

I need to retrieve a list from entity.

 Query like: select * from temp where name='ravi' OR name='anu';

 I have tried this but not working:
<entity-and entity-name="temp " list="tempList">
        <field-map field-name="name" value="ravi"/>
         <field-map field-name="name" value="anu"/>
   </entity-and>


 can you provide me some input from your side?

Regards
Anurag



--
View this message in context: http://ofbiz.135035.n4.nabble.com/I-need-to-retrieve-a-list-from-entity-tp4635223.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Re: I need to retrieve a list from entity.

Posted by Brajesh Patel <br...@gmail.com>.
Hi Anurag,

Please post your query on user mailing list.

On Wed, Jul 25, 2012 at 7:57 PM, Anurag Walia <wa...@hotmail.com>wrote:

> Hello All,
>
> I need you help.
>
> I need to retrieve a list from entity.
>
>  Query like: select * from temp where name='ravi' OR name='anu';
>
>  I have tried this but not working:
> <entity-and entity-name="temp " list="tempList">
>         <field-map field-name="name" value="ravi"/>
>          <field-map field-name="name" value="anu"/>
>    </entity-and>
>
>
>  can you provide me some input from your side?
>
> Regards
> Anurag
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/I-need-to-retrieve-a-list-from-entity-tp4635223.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>



-- 
Thanks
Brajesh Patel
Salmonllc.com
http://bigfish.salmonllc.com/bfDemo.html

skype: brajesh.patel11
Cell:- +91 8750709907

Re: I need to retrieve a list from entity.

Posted by Praveen Agarwal <pr...@gmail.com>.
Hi Anurag,

Try this:-

<entity-condition entity-name="temp " list="tempList" >
    <condition-list combine="or">
        <condition-expr field-name="name" value="ravi"/>
        <condition-expr field-name="name" value="anu"/>
    </condition-list>
</entity-condition>

Hope it will work.

Regards,
Praveen Agrawal

On Wed, Jul 25, 2012 at 7:57 PM, Anurag Walia <wa...@hotmail.com>wrote:

> Hello All,
>
> I need you help.
>
> I need to retrieve a list from entity.
>
>  Query like: select * from temp where name='ravi' OR name='anu';
>
>  I have tried this but not working:
> <entity-and entity-name="temp " list="tempList">
>         <field-map field-name="name" value="ravi"/>
>          <field-map field-name="name" value="anu"/>
>    </entity-and>
>
>
>  can you provide me some input from your side?
>
> Regards
> Anurag
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/I-need-to-retrieve-a-list-from-entity-tp4635223.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>