Archive

Archive for November, 2012

Getting changed field values from SPItemEventReceiver

November 26, 2012 1 comment

 

http://www.thedotnotcorner.com/2012/11/26/helper-methods-for-getting-the-changed-field-value-in-spitemeventreceiver/

has written a very interesting looking helper function for getting old values out of events.

Advertisements
Categories: work Tags:

Creating a Project Server 2013 App

November 26, 2012 1 comment

 

The first in a series of posts about creating a Project Server app.

http://epmsource.com/2012/11/23/building-your-first-project-server-app-part-1-getting-started-setting-up-a-development-environment/

 

This will be interesting.

Service descriptions for SharePoint 2013

November 26, 2012 1 comment

 

This post here http://modery.net/new-service-descriptions-for-office-365-wave-15/

has a list of all the services in SharePoint 2013 and what version they are available in.

 

The interesting one for me is that SSRS is available in the E3 and E4 Office 365 plans. Not seen anything about that and I am interested as to how it will work.

Categories: CPS, work Tags:

How to hide the SharePoint ribbon

November 23, 2012 1 comment

 

Here is a quick post to show you how you can hide the SharePoint ribbon on a page using JavaScript. This was created by one of my colleagues so I am not sure of why the ribbon needed to be hidden but here is how.

 

function hideEditRibbon() {
var ribbon = SP.Ribbon.PageManager.get_instance().get_ribbon();
// Set the tab to the “Browse” tab
SelectRibbonTab("Ribbon.Read", true);
// Remove the “Edit” tab from a list from from the ribbon.
ribbon.removeChild('Ribbon.ListForm.Edit');
}

SP.SOD.executeOrDelayUntilScriptLoaded(function() {

var pm = SP.Ribbon.PageManager.get_instance();

pm.add_ribbonInited(function() {
hideEditRibbon();
});

var ribbon = null;
try {
ribbon = pm.get_ribbon();
}
catch (e) { }

if (!ribbon) {
if (typeof(_ribbonStartInit) == "function")
_ribbonStartInit(_ribbon.initialTabId, false, null);
}
else {
hideEditRibbon();
}
},
"sp.ribbon.js");

 

Just add this code to a page using the content editor web part and it will work.

Categories: CPS, work Tags: , ,