Thorsten Scherler wrote:
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).
Am I correct that I have to completely throw overboard all techniques I
used to use in for example struts using STL? Even if the tags are
allmost identical. I have to go the way of seting variables in my
flowscript and not in the page itself? This is a way I sort of havt to
get used to first since the normal STL way would be the much more
intuitive way and in the last few weeks it turned out that every problem
I had was because I didn't do it the "intuitive-way" because of the
"way-you-usually-have-to-do-it-way".
Chris
HTH
salu2
Thanks in advance,
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]