I need to retrieve a list from entity.

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

I need to retrieve a list from entity.

Anurag Walia
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
Reply | Threaded
Open this post in threaded view
|

Re: I need to retrieve a list from entity.

praveen.agrawal
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 <[hidden email]>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.
>
Reply | Threaded
Open this post in threaded view
|

Re: I need to retrieve a list from entity.

brajeshpatel
In reply to this post by Anurag Walia
Hi Anurag,

Please post your query on user mailing list.

On Wed, Jul 25, 2012 at 7:57 PM, Anurag Walia <[hidden email]>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