cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: [CForms] xreporter assertion validation problem
Date Tue, 03 Feb 2004 22:27:38 GMT
Hello Bruno,

On 03.02.2004 19:54, Bruno Dumon wrote:

>>     <wd:validation>
>>       <wd:assert test="If(persontype = 0, Not(IsNull(lastname)), true)"/>
>>     </wd:validation>
> 
> The expression language doesn't have a predefined true constant, instead
> 'true' here means a variable named true which likely doesn't exist,
> unless you would happen to have a widget with id 'true'.
> 
> Instead, use the True() function.

it was indeed naive to assume a constant 'true' - especially as the 
True() function is not mentioned far away from Or() or If() at 
http://xreporter.cocoondev.org/en/expressions.html.

Thanks,

Joerg

Mime
View raw message