First of all you have to make sure there is a session object. You can create one with cocoon.session
or with session actions I believe.
To pass dynamic parameters to flowscript, add the map:parameter to the map:call
statements:
<map:call function="myfunc">
<map:parameter name="myvar" value="{session-attr:myattr}" />
</map:call>
And not to the map:script command!
In flowscript you will need the following:
function myfunc {
var myvar = cocoon.parameters["myvar"];
// or
var myvar = cocoon.parameter.myvar;
...
}
Cheers,
Geert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]