Hi Kranga,
If you look in the slide sample's flow, its opening stanza has some code that extracts the globals form the sitemap, to wit:


//Obtain reference to the global section of the sitemap:
var global = cocoon.getComponent(InputModule.ROLE + "Selector").select("global");
//get global values from the sitemap
var namespace = global.getAttribute("namespace",null,null);
var base = global.getAttribute("base",null,null);


Given that you have a config section like this:
    <global-variables>
      <namespace>cocoon214</namespace>
      <base>/civica_slide</base>
    </global-variables>

Hope this helps.

Regards,

Tony


kranga wrote:

Can someone help??



How can I access values defined in the <global-variables> section from


a


flow script and from jx-templates?

Thanks
K


--------------------------------------------------------------------- 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]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to