Quick Tip: Provisioning a List View to a Web Part Page

Following on from my recent post (Provisioning Web Parts to a Page), I had a question asking how to do this for List Views. Below is a code sample showing how to do this… 1: <?xml version="1.0" encoding="utf-8"?> 2: <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> 3: <Module Name="XYZCustomPages" RootWebOnly="True"> 4: <File Path="XYZCustomPages\Home.aspx" Url="Home.aspx" IgnoreIfAlreadyExists="true"> 5: <View List="Lists/Tasks" BaseViewID="0" WebPartZoneID="Left"…

4

How To Remove "Use My Local Drafts Folder" Checkbox

Lots of customers I work with establish a requirement that files must be ‘checked out’ from SharePoint before they can be edited. This prevents multiple users from overwriting one another’s changes to files. The “check-out and check-in” functionality is a widely used in SharePoint and is just one of the many Enterprise Content Management features available in SharePoint 2010…

7

Quick Tip: Provisioning Web Parts to a Page

When deploying a page to SharePoint through a Modules feature, there are several options adding web parts to this. These are as follows: Add the web parts to the page programmatically via a feature receiver. This approach can be done quickly and easily if you are familiar with coding, however if the feature receiver fails, the web…

9

Quick Tip: Storing InfoPath Contact Selector values in SharePoint

Some time ago now, I published a post entitled Quick Tip: Using the SharePoint ‘Person or Group’ field in code which covered details of how to use the ‘Person or Group’ field type in your custom applications. As I eluded to at the end of that post, one of the most common uses of the…

8

Quick Tip: Using the SharePoint ‘Person or Group’ field in code

One of the coolest types of site column (or field) in SharePoint is the ‘Person or Group’ field type. This allows you to select people from the GAL using a nice little picker control. When users are selected, you benefit from all of the presence capabilities of SharePoint as shown in this screen shot: I…

21

Top Tips for InfoPath form development with SharePoint: Part 1

InfoPath is a great tool that allows you to quickly design and implement browser-based electronic forms which can be delivered as HTML via SharePoint Form Services. Historically there hasn’t been much information available around best practices for development of browser-based InfoPath forms and most organisations have tended to define their own though trial and error….

8

Quick Tip: Throwing SPExceptions

Just a quick note for developers. If you want normal code execution to be terminated and want a useful message to be presented back to the end user on the SharePoint error page, throw an exception that either is of type SPException, or derives from type SPException. If this is done, the associated exception message…

1