You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Anurag Walia <wa...@hotmail.com> on 2010/06/03 10:39:20 UTC
entity value between two days
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
--
View this message in context: http://ofbiz.135035.n4.nabble.com/entity-value-between-two-days-tp2241366p2241366.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: entity value between two days
Posted by Anurag Walia <wa...@hotmail.com>.
thanks for your valuable reply.
but i got the solution using LESS_THAN or GREATER THAN OPERATOR in Entity
Condition.
--
View this message in context: http://ofbiz.135035.n4.nabble.com/entity-value-between-two-days-tp2241366p2241589.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: entity value between two days
Posted by Atul Vani <at...@hotwaxmedia.com>.
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
>