AnsweredAssumed Answered

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

Question asked by kevin.huang on Oct 31, 2016
Latest reply on Oct 31, 2016 by douglascrp

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

Outcomes