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
