04-15-2012 08:47 PM
The Alfresco JavaScript API provides a rich set of scriptable Java objects that are available to the script writer. Many "root" scope objects (see below) are provided by default, such as access to the user home folder, company home folder, WCM Web Projects, search, People API…but although I am able to use the root scope objects executing a script inside Alfresco, just using it direclty
groups.getGroup(groupName);
I can't figure out how to use/import that objects in a script tested with the Debugger.04-16-2012 05:45 AM
04-16-2012 09:14 AM
groups.getAllRootGroups()
the debugger throws a popup with the exceptionorg.mozilla.javascript.EcmaError: ReferenceError: "groups" is not definedand I obtain the same result with other root objects.
04-16-2012 09:18 AM
Executing a simple code likethe debugger throws a popup with the exceptiongroups.getAllRootGroups()
org.mozilla.javascript.EcmaError: ReferenceError: "groups" is not definedand I obtain the same result with other root objects.
04-16-2012 09:56 AM
groups The root of group authorities. Providing access to groups Groupsand when I use that object from a script inside Alfresco all works well.
org.mozilla.javascript.EcmaError: ReferenceError: "people" is not defined
04-19-2012 03:32 PM
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.