AnsweredAssumed Answered

Web script - how to iterate ScriptableHashMap?

Question asked by morf3usz on May 24, 2010
Latest reply on Jun 21, 2011 by cmcmillen1
Hi,

Does anyone know, how to iterate the ScriptableHashMap in Alfresco Web script? I have the following construction:

var projects = webprojects.listWebProjects();
var project;

for (var i = 0; i < projects.length; i++) {
    if (projects[i].getName() == 'HbbTV') {
        project = projects[i];
        break;
    }
}

var sand = project.getSandboxes(); // <—– according to documentation, here is ScriptableHashMap
When now I try to call :

sand.getIds();
the webscript complains:
TypeError: getIds is not a function, it is null
Does anybody know how what to do with that?

Outcomes