AnsweredAssumed Answered

How can I call a data webscript from another data webscript?

Question asked by tb13 on Nov 11, 2010
Latest reply on Nov 11, 2010 by mikeh
Hi,
How would I go about calling a data webscript from another data webscript?

I would like to trigger something like this:
 
theUrl = "/slingshot/doclib/container/" + shortName + "/documentLibrary";
connector = remote.connect("alfresco");
result = connector.get(theUrl);

but since that seems to be webtier code it will not trigger …
I get the following error:
Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/sites.post.json.js': 10110139 ReferenceError: "remote" is not defined.

So what would I have to do to call the webscript at "/slingshot/doclib/container/" + shortName + "/documentLibrary from sites.post.json.js?

Tanks in advance …

Outcomes