You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Yatin Shah <no...@kripa.com> on 2004/02/04 16:48:56 UTC
Re: [FLOW] How to access flow parms in the site map? RESOLVED
Thanks to Daniel's suggestion.
FYI:
Following works in the sitemap.
<map:select type="parameter">
<map:parameter name="parameter-selector-test"
value="{flow-attribute:flowRequest/ver}"/>
<map:when test="POP" >
</map:when>
<map:otherwise>
</map:otherwise>
</map:select>
In the flowscript:
I define a JS object called flowRequest with data member ver and invoke
the sendPageAndWait command as follows:
cocoon.sendPageAndWait("XMLcollector", { "flowRequest":flowRequest});
Setting ver to "POP" triggers the test="POP" part of the select logic.
Cheers
-Yatin