10-31-2016 11:09 AM
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
10-31-2016 03:40 PM
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.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.