Update SharePoint 2010 List Item Pages with InfoPath Designer |
|
| Ranked
5.0
out of 5.
Rate This Post! | | | | | |
By: Arjun Chakraborty
Introduction:
Back in SharePoint 2007, if you wanted to change the NewForm.aspx, DispForm.aspx or EditForm.aspx, you had to use SharePoint Designer. However, with SharePoint 2010, you have the option of using InfoPath to edit these pages. The only requirements are that the “SharePoint Server Enterprise Site Collection features” site collection feature is activated, and that InfoPath is installed on your machine.
For those who are not familiar, NewForm.aspx, DispForm.aspx and EditForm.aspx are pages associated to a SharePoint list, and they appear when a user creates a new item in the list, viewing the properties of an item within the list or editing the properties (metadata) of an item within the list, respectively.
How to Edit These Pages Using InfoPath:
Activate “SharePoint Server Enterprise Site Collection features” Site Collection Feature.
1) Go to Site Settings, from the root site in the site collection.
2) Click on Site Collection Features.
|
|
|
|
SharePoint 2010 Status Lists |
|
| Ranked
5.0
out of 5.
Rate This Post! | | | | | |
By: Robert Christ
Introduction to Status Lists
Anyone who has poked around SharePoint 2010 knows that one of the most touted features of SharePoint is its ability to rapidly and easily display data in clear reporting forms.
If you aren’t of a mind to delve into Excel Services, SQL Service Analysis or PerformancePoint, you are not out of options. SharePoint 2010 also offers the Status List feature.

Figure 1 - Example of a Status List
Status lists are a relatively simple feature. In short, they allow a user, with the click of a few buttons, to query a list on a SharePoint site, and determine if the items in that list (hence force called the data list) meet a condition of one type or another.
For example, you can make a Status List Item (called a KPI, there are three shown in the picture above) to determine if >50% of all items in the data list have a column value > 2, or perhaps just report on whether the data list has greater than or less than a certain number of items in it at any one time.
If you’re particularly clever, you’ll realize that you can also create these KPIs to report based on views within the data list. By configuring a view to filter according to a certain set of v... |
|
|
|
Adding video to your Document Set Welcome Pages |
|
| Ranked
5.0
out of 5.
Rate This Post! | | | | | |
By: Neil Barkhina
When I first got introduced to document sets in SharePoint 2010, the thing that initially caught my eye among the various Microsoft demos was the ability to include a video on the Welcome Page of your document set. However, what I quickly realized is that the video was always the same because document sets all share the same welcome page. Now let’s say you wanted to create your own Video Library in SharePoint 2010. My first thought was to use document sets because they are great at grouping various documents about the video in addition to the video itself. Also there was the added benefit of being able to share the same metadata tagging across all the documents for a particular video. However using the out of the box Silverlight Video player, there was no way to specify a separate source video file for each document set. So what I found myself doing was writing a light weight Visual Web Part to do that task.
The first step was to copy and paste the markup from the out of the box Media Web Part into the design view of my Visual web part. The only change I made to the outside tags was the width and height parameters:
<div style="width:640px;height:360px;">
<object id="ctl00_m_g_4b3fb4b5_9a94_4eb8_aedd_f693bdb313ef" type |
|
|
Adding autocomplete to any field using jQuery UI and SharePoint's Rest API |
|
| Ranked
5.0
out of 5.
Rate This Post! | | | | | |
By: Omar Stewart
In SharePoint 2007 getting retrieving data asynchronously on the client side wasn't the most straightforward thing to get done. To circumvent these challenges, many had to look to third party wrapper libraries such as SPServices. SharePoint 2010 alleviates this problem by providing a wonderful REST API that allows for easy, and clean querying.
Using the Rest API we can worry less about the technicalities associated with retrieving data and more about our client-side goals. These API's help us to leverage third party libraries to help create SharePoint-Backed applications, that are modern and up-to-speed with the ever evolving world wide web.
In this example we'll use jQuery UI to add autocomplete to a standard text field. The autocomplete will pull its suggestions from a standard SharePoint list. While SharePoint 2010 introduces Managed MetaData that effectively recreates this effect, in some cases its just a little heavier than what we need.
For our Scenario we'll create a standard SharePoint survey that will go out to employees to gather information on what they would like to see at the company Christmas Party. We'll create a list of drinks that we can use as suggestions when asking for an employee's drink of choice.
First we'll create a list of drinks:
|
|
|
|
Declaratively create a list with a hidden Title Field in SharePoint 2010 |
|
| Ranked
5.0
out of 5.
Rate This Post! | | | | | |
By: Arjun Chakraborty
Sometimes, I have to create lists declaratively. For those who don’t know what that means, it’s adding Lists to a SharePoint site when a SharePoint Feature. The list is not created through C# code behind a feature receiver. Instead it is created through an Elements.xml and a Schema.xml. The Schema.xml file describes the list; What views are there? What content types are there? What fields are there? The Elements.xml adds the described list into SharePoint as a List Template. Finally, the user can then create an SPList using the declared template.
However, one of the big challenges I’ve had is removing the Title field, or at least making it non-required. Back in SP2007, you could use the <RemoveFieldRef> tag, to remove the Title Field. Unfortunately, this tag no longer seems to work in SP 2010. If you find a work around for content types, feel free to post in the comments!
As for lists, I got around this by explicitly declaring a custom content type, inheriting from Item, within the list’s schema. I then explicitly declared the Title column within the custom content type, and set the hidden attribute to true. Now, when a user creates a list with this template, the Title field will be hidden from users, and not required.
Here’s how:
1) Open Visual studio 2010.
2) |
|
|
|
Highlighting Recently Replied To Discussion Items |
|
| Ranked
5.0
out of 5.
Rate This Post! | | | | | |
By: Kathryn Bartlett
In this post we will demonstrate using the Conditional Formatting feature of SharePoint Designer 2010 to highlight items in a discussion board that have received a new reply within the past two days. First, we will need to create a calculated date column in our discussion board to compare the current date to. Suppose we have the following discussion board:

For this post, I will call this column “Highlight Threshold”, set it as a Date and Time column with a Date Only format. For the formula, we will be adding two days to the existing “Last Updated” column, as this is the column that updates upon receiving a new reply, not the Modified column. Note that this column must appear in the view, or the conditional formatting will disappear.

Now let’s open up SharePoint Designer 2010 and open the site this discussion board lives on. From here, click on “Lists and Libraries” and then click on your discussion board in the main pane. Right-click the “Subject” view and select “Edit File in Advanced Mode”.

Click anywhere inside the web par... |
|
|
|
Securely Deploying ASP.NET Web Services in SharePoint 2010 (Part 1 of 2) |
|
| Ranked
5.0
out of 5.
Rate This Post! | | | | | |
By Christian Holslin
Part 1: The Business Case and Step-by-Step Summary
Introduction
If you have ever found yourself the caretaker of a SharePoint farm you have probably pondered an appropriate strategy for governance. SharePoint offers excellent governance options for its own content, but what happens when you introduce customizations into the environment?
Event Receivers and Workflows are bound to the same security constraints as the items they operate against, with programmable exceptions, but cannot be explicitly invoked without the user possessing the appropriate rights to the item itself in the first place.
Web Services and Governance
Classic ASP.NET Web Services, on the other hand, are a bit more lax in their security policy. Deploying a Web Service to SharePoint provides many valuable options:
-
Automate repetitive and/or labor-intensive operations
-
Provide data to web parts and forms
-
Interoperate with .NET or 3rd party applications
-
Feed data to SharePoint
The list goes on and on. When you deploy a classic MyService.asmx Web Service to the “Layouts” folder, it can be acc... |
|
|
|
Default List Views in SharePoint Client Object Model |
|
| Ranked
5.0
out of 5.
Rate This Post! | | | | | |
By: Neil Barkhina
The SharePoint client object model is very versatile at interacting with the SharePoint API from a remote location. Though almost everything can be done with the client object model, some things that are very easy to do in the native API takes a little bit more leg work. One of those examples is the way you interact with lists and libraries. All functions that collect data must be queued up and executed as a batch using the ExecuteQuery function. In this post we will look at the way you would get a Default ListView.
In the native API, iterating through list items from the default view can be done by calling SPList.GetItems(SPList.DefaultView). Unfortunately the client object model doesn’t have a DefaultView property on lists, but they can still be accessed by doing the following.
Authentication
First you need to authenticate against the site by creating a ClientContext Object and passing in the URL of your SharePoint site
ClientContext clientContext1 = new ClientContext("https://mysite.test.com ");
clientContext1.AuthenticationMode = ClientAuthenticationMode.Default;
NetworkCredential credentials = new NetworkCredential("test", <... |
|
|
|
Parent Web Content Types do not appear on Child Web Content Type List in API |
|
| Ranked
5.0
out of 5.
Rate This Post! | | | | | |
By: Arjun Chakraborty
Today, I would like to note that although site content types from parent webs appear on the content type gallery in a child site, this is not necessarily true within the SharePoint API. When iterating through the child SPWeb’s SPContentType list, you will not find any of the content types created in a parent site. To demonstrate this, I will show you a simple site collection, where there is one root site, with a custom site content type, and a subsite, with a list that uses the custom site content type, as a list content type. I will also use a workflow in the subsite’s list, to demonstrate what I mean.
Setup:
Here is the Root site, with its custom content type, based on the ‘Item’ content type:

Here is the subsite, with the demonstration list:

Inside the list, we see one item, coincidentally of the same content type as the one in the root site:

We will be running a w... |
|
|
|
Finding a Feature by Feature ID in SharePoint 2010 |
|
| Ranked
5.0
out of 5.
Rate This Post! | | | | | |
By: Robert Christ
Recently, I stumbled across one of the most helpful blog posts I’ve seen since I started developing for SharePoint 2010. Wouter, over at blogs.code-counsel.net has created a small, <40 line console application that iterates through the Features directory of a SharePoint installation, and outputs a list of every feature, feature title and feature id installed on the SharePoint Farm.
Why is this helpful you ask?
There are at least two different times when this tool is absolutely necessary.

To my knowledge, this little console application is the best way to figure out what feature should be turned on, when the error message only shows you the feature ID. Simple compile it or something similar on your own, and you will have a great reference of which feature IDs mean which actual features.
If you do use the same code as in Wouter’s example, and are using SharePo... |
|
|
|
| | | | | | | |