11-15-2012 01:48 PM
var connector = remote.connect("alfresco");
var result = connector.get("/alfresco-feed/calendar/eventList?site=content&format=json")
// Also tried
// var result = remote.call("/alfresco/service/calendar/getCalendarEvent");
if (result.status == 200 && result != "{}")
{
prefs = eval('(' + result + ')');
// get the dates
for (var i = 0; i < prefs.properties.length; i++) {
objArray = prefs.properties[i].value;
for (var i2 = 0; i2 < objArray.length; i2++) {
resultArray.push(objArray[i2].uri)
}
}
model.result = resultArray;
}
model.status = result.status
11-21-2012 06:18 AM
http://localhost:8080/share/proxy/alfresco/calendar/events/content/user
(where "content" is the shortname for your site).
var connector = remote.connect("alfresco");
var result = connector.get("/calendar/events/content/user");
if (result.status == 200 && result != "{}")
{
resultObj = eval('(' + result + ')');
model.result = resultObj.events;
}
model.status = result.status
12-04-2012 06:35 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.