ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Malin <nicolas.ma...@nereide.fr>
Subject Re: use-when not working in hot-deploy
Date Sat, 17 Jan 2015 13:57:16 GMT
use

use-when="quot;closed&quot;.equals(StatusId)"
or
use-when="${groovy: 'closed' == StatusId}"

But ant, prefer sur use statusId instead Of StatusId for your variable name

Nicolas


Le 16/01/2015 09:36, Mandar K a écrit :
> Hello All,
>
> I have created a practice component in hot-deploy
> and am trying to use the use-when in form field.
>
> Situation:
> Show Name as text input,
> But When status == 'closed', show Name as Display only.
>
> Kindly let me know where is the issue. This is a form of type single and
> Status value is correctly shown, but the Name field doesnt show as per the
> status.
> It displays a text field even is StatusId=closed
>
>
> <field name=*"StatusId"* ><display/></field>
>
>
>
> <field name=*"Name"* ><text/></field>
>
> <field name=*"Name"* use-when=*"StatusId==&quot;closed&quot;"*><display/></
> field>
>
> Thanks,
> Mandar
>


Mime
View raw message