LinkedIn and SharePoint…don’t do it

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

So I was asked as part of a proof of concept idea to build an optional system for users to display data from there LinkedIn Profile.

No Comments

Mystery of IOPS

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Common issue I’ve ran in to over the years is low performing farms, often times the cause is directly related to the disk throughput which is measurable as IOPS (IO Operations Per Second). However gauging and determining both what a good IOPS score is and how to test and measure it is almost an art.

1 Comment

List Schema.xml Weirdness With Content Types

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Fixing issues with managing columns in list deployed via a schema.xml file based on a content type.

3 Comments

Hide the ‘Attach Files’ Option

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

So I got asked today for a way to block end users from attaching files to list items on a particular list. So I whipped out jQuery and quickly wrote a little selector to hide that page region.

5 Comments

Upload Files with Metadata in Client Object Model

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Alright so after my last post you can now bring SharePoint form fields in to a Silverlight form. But now how do you feed that information back to SharePoint? And how do you add metadata to the file at the same time as the upload? This is how! So you can see we first grab […]

2 Comments

Translate SharePoint Fields to SilverLight

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

So having the Silverlight Client Object Model in SharePoint 2010 is great. However, some of the most common requests after rich media with Silverlight and SharePoint regard managing data. However, the built in SharePoint 2010 field types can not directly translate to Silverlight controls. This is an example of how I managed to translate most of the common fields to and from SharePoint and Silverlight. Depending on the type of the SPField being passed the correct form field type gets added to the Silverlight form on the fly.

2 Comments

Checking File Status in an EventHandler

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

So a common issue people run in to with file driven event handlers in SharePoint is that the event handler triggers on the SPListItem being added not the file write completion. So oftentimes you’ll get odd issues where unpredictably you won’t be able to access the file within your event handler (typically a NullReferenceException). So here’s a simple example for how to see if the file upload has been completed and added successfully to the list item.

No Comments

jQuery Index Based Selectors

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

So this post is not really strictly SharePoint. But covers a cool function I hadn’t noticed before in jQuery, namely it supports CSS3 index based selectors.

1 Comment

Programmatically Add a File in SharePoint

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

A simple demonstration function to add a file to an existing SharePoint Library.

10 Comments

Programmatically Set Permissions

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

This is some example code I wrote the for the MSDN forums to showcase how you can programmatically set permissions. This code will work for splists or spwebs (in the example it’s SPList permissions, but just changing those calls to go off of Web will switch it). In addition, this shows how to set permissions automatically at feature activation using a SPFeatureReceiver. Double bonus! 😉 Read on for code!

2 Comments