AnsweredAssumed Answered

Using ActionUtils.executeScript

Question asked by chicco0386 on Sep 28, 2010
Latest reply on Sep 28, 2010 by chicco0386
Hi all,
I'm try to execute a script over a document using the ActionUtils.executeScript function.

I write this line of code:
Reference document  = new Reference(RepositoryUtils.getStore(), null, "/app:company_home/cm:MailBody.txt");
            Reference script = new Reference(RepositoryUtils.getStore(), null, "/app:company_home/cm:tria_test.js");
            ActionUtils.executeScript(document, script);

And my script simple do a log:
var nomeCurrentSpace = space.properties.name;
logger.log(nomeCurrentSpace);

But in the log after the call of the ActionUtils.executeScript function don't appear the name of the space.

CAN YOU HELP ME?

THANK YOU

Outcomes