Extending Project Online and on

PC403
http://nearbaseline.com/blog/2013/12/configuring-project-online-for-app-development/
http://blogs.msdn.com/b/josrod/archive/2013/02/04/quot-sideloading-of-apps-is-not-enabled-on-this-site-quot.aspx
http://servername/PWA/_api/ProjectServer/Calendars
http://sprest.architectingconnectedsystems.com/
http://www.holidaywebservice.com
http://myapp.domain.com
http://someservice.com
Or external
domain
http://msdn.microsoft.com/en-us/library/office/fp179927.aspx
http://msdn.microsoft.com/en-us/library/office/jj669390.aspx
// Get the Project Server context
var projContext = PS.ProjectContext.get_current();
// Get our Calendar Collection
var eCalColl = projContext.get_calendars();
var eCalendar = eCalColl.getByGuid(calUid);
var eCalBaseExcep = eCalendar.get_baseCalendarExceptions();
var excepInfo = new PS.CalendarExceptionCreationInformation();
// Set the exception properties
excepInfo.set_name(exceptions[i].Descriptor);
excepInfo.set_start(exceptions[i].Date);
excepInfo.set_finish(exceptions[i].Date);
// Finally add the exception info to the base calendar object
eCalBaseExcep.add(excepInfo);
// Update the collection
eCalColl.update();
// Finally asynchronously execute the update
projContext.executeQueryAsync(Function.createDelegate(this, function () {
// Success update our grid and finish up
this.grid.setSelectedRows([]);
// Display the results and remove the progress msg
SP.UI.Notify.addNotification("Exceptions added successfully", false);
}), Function.createDelegate(this, function (call, error) {
// Handle Error
alert(error.get_message());
}));
@MartinLaukkanen
http://nearbaseline.com/blog
http://nearbaseline.com/blog/tag/ProjConf/
MyPC fill out
evaluations
& win prizes!
www.msprojectconference.com