10-13-2010 08:40 AM
// Get the Documents Modified data for this site
var url = args.dod5015 ? "/slingshot/doclib/dod5015/doclist/documents/site/" : "/slingshot/doclib/doclist/documents/site/";
var json = remote.call(url + page.url.templateArgs.site + "/documentLibrary?filter=recentlyModified&max=10");
// Create the model
var docs = eval('(' + json + ')');
model.docs = docs;
// Get the Folders
var site, container, theUrl, connector, result, lists;
site = page.url.templateArgs.site;
container = 'documentLibrary';
theUrl = '/slingshot/doclib/container/' + site + '/' + container;
connector = remote.connect("alfresco");
result = connector.get(theUrl);
var response = null;
if (result.status == 200)
{
response = eval('(' + result.response + ')');
}
model.docs = response;
10-14-2010 07:15 PM
10-22-2010 09:53 AM
{
"totalResults": 4,
"resultsTrimmed": false,
"parent":
{
"nodeRef": "workspace://SpacesStore/7512f001-fd8e-4b67-9fa6-31c2b8a8b58e",
"userAccess":
{
"create": true,
"edit": true,
"delete": true
}
},
"items":
[
{
"nodeRef": "workspace://SpacesStore/25b959be-4aba-450d-9b79-22f10d0177f3",
"name": "test folder",
"description": "some description here",
"hasChildren": false,
"userAccess":
{
"create": true,
"edit": true,
"delete": true
}
},
…
10-27-2010 08:55 AM
var url = args.dod5015 ? "/slingshot/doclib/dod5015/doclist/folders/site/" : "/slingshot/doclib/doclist/folders/site/";
var json = remote.call(url + page.url.templateArgs.site + "/documentLibrary/myfolder");
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.