You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by SAURABH SINGH <sa...@gmail.com> on 2014/04/16 14:30:13 UTC

max function in entitymodel.xml

Dear all

How can i use max function in entity condition in the entitymodel.xml file.

anyone can help me?

-- 


*Thanks & RegardsSAURABH SINGH**Software Engineer*

Re: max function in entitymodel.xml

Posted by SAURABH SINGH <sa...@gmail.com>.
Actually i want to get a max value in an entity condition define on
screens.xml

<entity-condition list="valuationList"
entity-name="ContractProgressAndPeriod">
               <condition-list combine="and">
                <condition-expr field-name="workEffortId" operator="equals"
from-field="workEffortId"/>


                 *<condition-exp**r field-name="cum**ulativePayment"
function="MAX" />*
</condition-list>
               </entity-condition>

I want the max value of the given field name cumulativePayment where i
worte function="MAX"


On Wed, Apr 16, 2014 at 6:20 PM, Yashwant Dhakad <
yashwant.dhakad@hotwaxmedia.com> wrote:

> Hi Saurabh,
>
> Please refer ProductVirtualAndAssocPrices view entity defined in
> product/entitydef/entitymodel.xml  for reference.
>
> --
> Thanks & Regards,
> Yashwant Dhakad
>
>
>
>
>
> On 04/16/2014 06:00 PM, SAURABH SINGH wrote:
>
>> Dear all
>>
>> How can i use max function in entity condition in the entitymodel.xml
>> file.
>>
>> anyone can help me?
>>
>>


-- 


*Thanks & RegardsSAURABH SINGH**Software Engineer*

Re: max function in entitymodel.xml

Posted by Yashwant Dhakad <ya...@hotwaxmedia.com>.
Hi Saurabh,

Please refer ProductVirtualAndAssocPrices view entity defined in 
product/entitydef/entitymodel.xml  for reference.

-- 
Thanks & Regards,
Yashwant Dhakad




On 04/16/2014 06:00 PM, SAURABH SINGH wrote:
> Dear all
>
> How can i use max function in entity condition in the entitymodel.xml file.
>
> anyone can help me?
>