entity value between two days

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

entity value between two days

Anurag Walia
Hi all,

Thanks to all for given your consideration.

i want to fetch  month wise data from entity but i am not getting any function through which i can do it.

 <entity entity-name="attendance">
      <field name="partyId" type="id-ne"></field>
      <field name="date" type="date"></field>
      <field name="day" type="id"></field> 
 </entity>

date is the field on the basis of which i want to find the month specific data.

Regards
Anurag Walia
Reply | Threaded
Open this post in threaded view
|

Re: entity value between two days

Atul Vani
Hi Anurag,

you may wanna use getMonthStart() and getMonthEnd() from UtilDateTime.java

if it's xml you want to you those functions in, then try <set
field="..." value="${groovy: ... }"/>

--
Thanks & Regards
Atul Vani
Enterprise Software Developer
HotWax Media Pvt. Ltd.
http://www.hotwaxmedia.com/
We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.

Anurag Walia wrote:

> Hi all,
>
> Thanks to all for given your consideration.
>
> i want to fetch  month wise data from entity but i am not getting any
> function through which i can do it.
>
>  <entity entity-name="attendance">
>       <field name="partyId" type="id-ne"></field>
>       <field name="date" type="date"></field>
>       <field name="day" type="id"></field>
>  </entity>
>
> date is the field on the basis of which i want to find the month specific
> data.
>
> Regards
> Anurag Walia
>  
Reply | Threaded
Open this post in threaded view
|

Re: entity value between two days

Anurag Walia
thanks for your valuable reply.
but i got the solution using LESS_THAN or GREATER THAN OPERATOR in Entity Condition.