Display or text ?

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

Display or text ?

JulienNicolas
Hi,

I have a little problem with a type list form.

In this form, I want to allow key-in a field when the purposeTypeId had
specific value.
For other value, this field is in display only.

my problem is that I have a field width offset between the column title
and the value.

<field
use-when="&quot;WEPT_PRODUCTION_RUN_POOL&quot;.equals(&quot;${productionRunData.purposeTypeId}&quot;)"
name="estimatedQuantity"
title="${uiLabelMap.ManufacturingQuantity}"><text/></field>
<field
use-when="!&quot;WEPT_PRODUCTION_RUN_POOL&quot;.equals(&quot;${productionRunData.purposeTypeId}&quot;)"
name="estimatedQuantity"
title="${uiLabelMap.ManufacturingQuantity}"><display/></field>

What could be wrong ?

Thanks by advance,

Regards,

Julien.

Reply | Threaded
Open this post in threaded view
|

Re: Display or text ?

JulienNicolas
Hi,

I have a 'not too bad' solution.

           <field name="estimatedQuantity"
use-when="${'WEPT_PRODUCTION_RUN_POOL' ==
productionRunData.purposeTypeId}"><text/></field>
           <field name="estimatedQuantity"
use-when="${'WEPT_PRODUCTION_RUN_POOL' !=
productionRunData.purposeTypeId}"><text disabled="true"/></field>

With this solution, there is no offset but I have an input field with
disable input... but it's ok for me.

If somebody know why the other solution doesn't work, I'm interested to
know the solution.

Thank you for your help.

Julien.


Le 05/08/2014 17:52, Julien NICOLAS a écrit :

> Hi,
>
> I have a little problem with a type list form.
>
> In this form, I want to allow key-in a field when the purposeTypeId
> had specific value.
> For other value, this field is in display only.
>
> my problem is that I have a field width offset between the column
> title and the value.
>
> <field
> use-when="&quot;WEPT_PRODUCTION_RUN_POOL&quot;.equals(&quot;${productionRunData.purposeTypeId}&quot;)"
> name="estimatedQuantity"
> title="${uiLabelMap.ManufacturingQuantity}"><text/></field>
> <field
> use-when="!&quot;WEPT_PRODUCTION_RUN_POOL&quot;.equals(&quot;${productionRunData.purposeTypeId}&quot;)"
> name="estimatedQuantity"
> title="${uiLabelMap.ManufacturingQuantity}"><display/></field>
>
> What could be wrong ?
>
> Thanks by advance,
>
> Regards,
>
> Julien.
>