use-when not working in hot-deploy

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

use-when not working in hot-deploy

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

Re: use-when not working in hot-deploy

Nicolas Malin-2
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
>