cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Re: Usage of jx:set tags
Date Wed, 01 Jun 2005 13:47:40 GMT
On Wed, 2005-06-01 at 15:32 +0200, Christofer Dutz wrote:
> Hi,
> 
> how can I set a vaiable and use it outside the macro it das 
> defined/redefined. Unfortunately the definitions/changes aren't 
> accessible outside.
> In my case I set a total variable to 0 and calculate a total over a 
> repeater field (which works if I output the variables value inside the 
> repeater loop).
> Outside the loop all changes are lost. There has to be a way for me to 
> do this calculation. Can anyone help me with this?
> 

First define a global (outside) variable, then just add an on-submit
event which will sync your global with your local variable (loop).

HTH
salu2

> Thanks in advance,
>     Chris
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message