As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var name=prompt("sometext","defaultvalue");
org.alfresco.error.AlfrescoRuntimeException: Error during command servlet processing: Failed to execute script 'workspace://SpacesStore/1118dbd7-464d-11dc-884d-adf88105aace': ReferenceError: "prompt" is not defined. (AlfrescoScript#1) caused by: org.alfresco.service.cmr.repository.ScriptException: Failed to execute script 'workspace://SpacesStore/1118dbd7-464d-11dc-884d-adf88105aace': ReferenceError: "prompt" is not defined. (AlfrescoScript#1) caused by: org.alfresco.error.AlfrescoRuntimeException: ReferenceError: "prompt" is not defined. (AlfrescoScript#1) caused by: org.mozilla.javascript.EcmaError: ReferenceError: "prompt" is not defined. (AlfrescoScript#1)
<a href="/alfresco/command/script/execute?scriptPath=/Company%20Home/Data%20Dictionary/Scripts//createproject.js&contextPath=/Company%20Home/Intranet/file.txt" ><h2>Create new project</h2></a>
var name= "<script>prompt(\"sometext\",\"defaultvalue\");</script>"; name; var myfolder = space.createFolder("Planning"); var myfolder = space.createFolder("Reporting"); var myfolder = space.createFolder("TA"); var goback = "<script>history.back();</script>"; goback;
<script type="text/javascript"> function createNewProject(url) { var name = prompt("Type the name here", "defaultValue"); location.href = url + "&name=" + name; } </script> <a href="#" onclick="createNewProject('/alfresco/command/script/execute?scriptPath=/Company%20Home/Data%20Dictionary/Scripts//createproject.js&contextPath=/Company%20Home/Intranet/file.txt'); return false;"> <h2>Create new project</h2> </a>
<#if hasPermission(TemplateNode node, String permission) == 1> … show the link … </#if>
<#if hasPermission(space, "Write") == 1> … show the link … </#if>
<script>alert('Duplicate space name found'); history.back();</script>