You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Daniel Diaz <dd...@dotech.com> on 2007/06/20 22:47:01 UTC

cForms repeater validation using sum

I need to test the sum of a column using cForms within a repeater. I'm
having a little trouble figuring out the syntax to make this work. I want to
do something like this...

<fd:repeater>
<fd:field id="col_value">
      <fd:validation>
		<fd:assert test="Sum(col_value) >= x_value">
			<fd:failmessage>Error</fd:failmessage>
		</fd:assert>
      </fd:validation>
</fd:field>
</fd:repeater>
 
Daniel Diaz, M.S.
RealNet Team