ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ankit Jain <ankit.i...@gmail.com>
Subject Re: use-when
Date Mon, 07 May 2012 09:50:03 GMT
Pierre,

I have already mentioned that its for second condition and for first
its already working for you so combine both the condition like this.

use-when="${thruDate==null || (thruDate &gt; nowTimestamp)}"

Regards,
Ankit Jain



On Mon, May 7, 2012 at 3:03 PM, Pierre Smits <pierre.smits@gmail.com> wrote:
> Thanks Ankit Jain,
>
> It worked, but with a side effect. When only your suggestion
> (use-when="${thruDate &gt; nowTimestamp}") it shows the button when
> thruDate is null.
>
> Regards,
>
> Pierre
>
> 2012/5/7 Ankit Jain <ankit.it09@gmail.com>
>
>> Try this for second condition use-when="${thruDate &gt; nowTimestamp}".
>>
>> HTH
>>
>> Regards,
>> Ankit Jain
>>
>>
>>
>> On Mon, May 7, 2012 at 12:31 PM, Pierre Smits <pierre.smits@gmail.com>
>> wrote:
>> > Hi all,
>> >
>> > I want to have a button only visible (with use-when on a field widget in
>> a
>> > form) in an overview when following conditions are met:
>> >
>> >   1. when thruDate is null or empty
>> >   2. when thruDate is great or equal to now.
>> >
>> > I can get the first one going, but the second and thus the combo not.
>> >
>> > Who can help me out?
>> >
>> > Regards,
>> >
>> > Pierre
>>

Mime
View raw message