AnsweredAssumed Answered

Any insight on ia:colorEvent for calendar events?

Question asked by zbennett on Oct 8, 2010
Hi all,

I'm just wondering if anyone knows what the ia:colorEvent property is used for on calendar events.  I tried entering a few different values for it on the edit metadata form, but doing so causes Alfresco to throw up the following error when I try reloading the calendar:

21:07:14,587  ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 09070012 Wrapped Exception (with status template): 09070479 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js': 09070478 ReferenceError: "startMonth" is not defined. (file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js#427)
org.springframework.extensions.webscripts.WebScriptException: 09070012 Wrapped Exception (with status template): 09070479 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js': 09070478 ReferenceError: "startMonth" is not defined. (file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js#427)
    at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:742)
    at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:167)
    at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:367)
    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:325)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:424)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:448)
    at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:294)
    at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
    at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
    at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
    at java.lang.Thread.run(Thread.java:619)
Caused by: org.alfresco.scripts.ScriptException: 09070479 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js': 09070478 ReferenceError: "startMonth" is not defined. (file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js#427)
    at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:194)
    at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:268)
    at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
    at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:975)
    at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
    … 21 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 09070478 ReferenceError: "startMonth" is not defined. (file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js#427)
    at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:488)
    at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:190)
    … 25 more
Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "startMonth" is not defined. (file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js#427)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3413)
    at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1612)
    at org.mozilla.javascript.gen.c2._c6(file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js:427)
    at org.mozilla.javascript.gen.c2.call(file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js)
    at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
    at org.mozilla.javascript.gen.c2._c3(file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js:219)
    at org.mozilla.javascript.gen.c2.call(file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js)
    at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
    at org.mozilla.javascript.gen.c2._c0(file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js:51)
    at org.mozilla.javascript.gen.c2.call(file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.gen.c2.call(file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js)
    at org.mozilla.javascript.gen.c2.exec(file:/C:/Alfresco34/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js)
    at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:472)
    … 26 more

Any thoughts?  I'm more curious than anything else…

Outcomes