AnsweredAssumed Answered

Nuevo script a ejecutar desde 'Mas acciones' del space

Question asked by lou on Mar 12, 2008
Me gustaría saber cómo debo definir una 'action' en web-client-config-actions.xml, que ejecute un script creado en "/Company Home/Data Dictionary/Scripts".
He probado con el código siguiente pero no funciona:

<action id="myscript">
            <label-id>labelmyscript</label-id>
            <image>/images/icons/new_edition_icon.gif</image>
            <script>/Company Home/Data Dictionary/Scripts/aapru.js</script>
            <params>
               <param name="id">#{actionContext.id}</param>
            </params>
</action>
. . .
<action-group id="browse_actions_menu">
            <action idref="myscript" />
            . . . .

Mensaje de error:
"org.alfresco.error.AlfrescoRuntimeException: Error during command servlet processing: Failed to execute script 'workspace://SpacesStore/2f4b28a9-f01b-11dc-909f-b14e7dd349ca': Failed to execute script 'workspace://SpacesStore/2f4b28a9-f01b-11dc-909f-b14e7dd349ca': ReferenceError: "space" is not defined. (AlfrescoScript#2)
caused by:
org.alfresco.service.cmr.repository.ScriptException: Failed to execute script 'workspace://SpacesStore/2f4b28a9-f01b-11dc-909f-b14e7dd349ca': Failed to execute script 'workspace://SpacesStore/2f4b28a9-f01b-11dc-909f-b14e7dd349ca': ReferenceError: "space" is not defined. (AlfrescoScript#2)
caused by:
org.alfresco.service.cmr.repository.ScriptException: Failed to execute script 'workspace://SpacesStore/2f4b28a9-f01b-11dc-909f-b14e7dd349ca': ReferenceError: "space" is not defined. (AlfrescoScript#2)
caused by:
org.alfresco.error.AlfrescoRuntimeException: ReferenceError: "space" is not defined. (AlfrescoScript#2)
caused by:
org.mozilla.javascript.EcmaError: ReferenceError: "space" is not defined. (AlfrescoScript#2)"
:?

Gracias

Outcomes