ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien NICOLAS <julien.nico...@nomaka.fr>
Subject Re: Display or text ?
Date Tue, 05 Aug 2014 16:15:11 GMT
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.
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message