cancel
Showing results for 
Search instead for 
Did you mean: 

var createVersion = "true"; var space = document.parent;

kevin_huang
Champ in-the-making
Champ in-the-making

var createVersion = "true";
var space = document.parent;

org.springframework.extensions.webscripts.WebScriptException: 09310031 Wrapped Exception (with status template): 09310205 Failed to execute script 'Javascript Console Script': 09310204 ReferenceError: "document" is not defined. (Javascript Console Script#27) at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1138) at de.fme.jsconsole.ExecuteWebscript.executeScriptContent(ExecuteWebscript.java:405) at de.fme.jsconsole.ExecuteWebscript.access$100(ExecuteWebscript.java:56) at de.fme.jsconsole.ExecuteWebscript$2.execute(ExecuteWebscript.java:280) at de.fme.jsconsole.ExecuteWebscript$2.execute(ExecuteWebscript.java:273) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:345) at de.fme.jsconsole.ExecuteWebscript.runWithTransactionIfNeeded(ExecuteWebscript.java:272) at de.fme.jsconsole.ExecuteWebscript.access$000(ExecuteWebscript.java:56) at de.fme.jsconsole.ExecuteWebscript$1.doWork(ExecuteWebscript.java:250)

why "document" is not defined." pls help me thanks

1 REPLY 1

douglascrp
World-Class Innovator
World-Class Innovator

How are you executing this javascript?

The document variable is populated for you when you are executing the script in a folder rule context, for example.

Give us more information and we can try to help you.