Writing to the ULS in SharePoint 2010
Here’s a quick, easy, 3 step method to log your custom events to the ULS while writing a SharePoint 2010 solution: Add a reference to Microsoft.Office.Server (located in C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14ISAPI on your SharePoint server) Add a using statement at the top of your code like so: using Microsoft.Office.Server.Diagnostics; Add the following line wherever you want the message to appear in the ULS PortalLog.LogString(<whatever you want to put in the ULS>) See? That wasn’t so bad!
Hiding View All Site Content and Recycle Bin in SharePoint 2010
I found a lot of resources online that explain many different ways of doing this, lots of comments saying it worked for them, none of which worked for me. I even found a tutorial online that explained how to do this using a custom permission, which works, but not when the same users have to have different permissions to underlying objects in the site. So here’s a method that works at the Master Page level, is customizable, and doesn’t affect…
Delete multiple web parts at the same time in SharePoint 2010
This is a quick one…if you ever have multiple web parts on a single SharePoint website, and you want to manage or delete more than one at a time, or even just see which web parts were added to a website beyond the default content of the template, add the following (in bold) after the URL in the active window: http://server/site/page.aspx?contents=1 This is cool! Check the boxes of the ones you want to delete/manage, etc. Enjoy!
PerformancePoint error: “Code blocks are not allowed in this file.”
While creating a new BI Center at my company we had no trouble building the site in dev, creating dashboards, Excel reports, etc. Everything worked fine. We were rolling the solution out to production (keeping in mind, our dev and prod installations of SharePoint 2010 were created identically), but when we clicked on “Start Using PerformancePoint Services”, we were met with the error page and the message “An error occurred during the processing of /<BI Center>/Pages/ppssample.aspx. Code blocks are not…
SharePoint 2010 Workflow Status filtering
Since MOSS 2007, SharePoint workflow statuses display with a text value such as “Canceled”, “Completed” or “In Progress”, but behind the scenes are stored as a key with an integer value. So in a view when you want to filter based on the workflow status you must use this key value, and not the display text. As an example, here’s what the Filtering section would look like if I were filtering out items where the workflow status were either “Completed”…