12
votes
9answers
11k views

Event Receiver Firing for all Lists - even when ListUrl is set

I have two custom list definitions - List 1 and List 2, both with different ID's for the Type in the elements.xml. List 1 is called 'List1' and the other is called 'List 2', note that the second list ...
12
votes
8answers
12k views

Customing the newform.aspx of a list using jslink in SharePoint 2013

How do I customise the newform.aspx of a list in SharePoint 2013 using JSLink? A lot of examples seem to be for customising list views. I can't find anything that explains how to customise the new ...
12
votes
3answers
5k views

How to split a Content Database within site

I have a very large content database & need to split it. Is it possible to split a content database within a site collection? or I need to create a new site collection?
12
votes
3answers
15k views

Why are user permissions set in AD not updated immediately to SharePoint?

I have a SharePoint 2010 Foundation installation on Windows 2008 R2 and SQL Server 2008 and using Claims and Windows authentication. Subsites are visible only to members of a certain group. However, ...
12
votes
6answers
2k views

Facebook-like notifications when new item is added to certain list/library?

I was wondering if this is possible. The screenshot below somewhat illustrates what I'm searching for. I'd like to show a notification in a box whenever a new item has been added to a certain list or ...
12
votes
1answer
2k views

Manage trust/add certificate

I try to add a certificate under "central administration>security>manage trust" but I always get the following error: The Root Certificate that was just selected is invalid. This may be ...
12
votes
3answers
17k views

How to get all items in a View using Client Object Model (JavaScript)

To get all the items in a List you use // Setup context & load web context = new SP.ClientContext.get_current(); web = context.get_web(); context.load(web); // Load task list this.List = ...
12
votes
1answer
3k views

Statistics on sharepoint use worldwide? [closed]

Does anyone know if there are any statistics out there for how many companies use SharePoint world wide? I did a quick search but couldn't find anything....
12
votes
3answers
9k views

CssRegistration with $SPUrl doesn't work

I'm using SharePoint 2013 and I have created master page file (as .html) and converted it to .master file. As I have read, I should only modify html file, because all changes will be also registered ...
12
votes
4answers
11k views

Best Practice to check if a user exist

Am I missing something here? There should be a method to check if a user exist, which doesn't throw an error if it doesn't. EnsureUser() is not applicable, because that method creates a new user if it ...
12
votes
2answers
3k views

What are all possible values for use with SPUrl?

So I've discovered: $SPUrl:~SiteCollection $SPUrl:~Site ~language (e.g. $SPUrl:~Site/yadda/~language/yadda or whatever) Where can I find a comprehensive listing of what's available for use with ...
12
votes
2answers
1k views

Identify Current Authentication Method Being Used

I am working on a solution that needs to act slightly differently if the incoming request is NTLM vs. Kerberos vs. ADFS, etc. Does anyone have an example of how to determine the incoming ...
12
votes
2answers
1k views

SharePoint Designer 2010 workflow lifecycle

I've build a workflow with SharePoint Designer 2010 on a dev computer. Let's say it's in V1. Now I want to move the workflow to the production environment. What is the correct way to do that ? I've ...
12
votes
3answers
3k views

Client Object Model equivalent of SPUtility.SendEmail in SharePoint 2010

I am trying to send an email after an action occurs in Silverlight WebPart I am designing. Is there a built-in class in the Client Object Model that can handle this, or will I have to build a ...
12
votes
1answer
911 views

Custom Timer Job does not Execute

I have a custom timer job that loads items into a generic list. The timer job is not executing. The timer job is deployed and the feature is activated. I can see the Timer job in the Job Definitions ...
12
votes
2answers
2k views

Cannot add custom web part to page using the JS OM

I'm trying to add a custom web part (that is one I have written myself) using the new Javascipt OM available with SharePoint 2010. My solution is also running within the Sandbox. I have it working ...
12
votes
3answers
5k views

Visual Studio 2012. Visual webpart's ascx.g.cs file empty after registering any control

I've discovered a problem when a Visual webpart's g.cs appears to be empty. I'm using Visual Studio 2012 Update 3 and a project for SharePoint 2010. The steps to reproduce the problem: in Visual ...
11
votes
3answers
2k views

Should I dispose these SPSite and SPWeb objects?

Is it necessary to dispose the site and web objects in the following code? If so, how do I do this? Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load Dim site ...
11
votes
5answers
18k views

Feature has already been installed. Use the force attribute to explicitly re-install the feature

We have several SharePoint 2010 solutions which we want to deploy to SharePoint 2013 with Visual Studio 2012 running on Windows Server 2012. Site solutions work. But farm solutions just don't. I get ...
11
votes
2answers
10k views

Programmatically add JS/CSS to pages

I've created a Visual Studio SharePoint 2010 solution with an ASCX that adds some JavaScript files and CSS to the head of each page; this is based on this article. When I deploy the solution, it adds ...
11
votes
2answers
4k views

How can I use normal paging on a custom view?

I'm creating several lists (and their views) programmatically, based on custom list definition templates. When these views display more than 30 items, the following link is displayed: Whereas on ...
11
votes
9answers
38k views

How can I move a document from one directory to another?

How can I move a document into a sub-folder and still maintain its version history from the old location in the new location?
11
votes
4answers
5k views

How to get List by Url using SharePoint 2013 CSOM

SharePoint 2013 CSOM API contains the following methods for accessing List object: ListCollection.GetById method - returns the list with the specified list identifier ListCollection.GetByTitle ...
11
votes
10answers
14k views

Sharing data between multiple site collections

We currently have no central records for the addresses of our offices around the world in Sharepoint. Different teams maintain their own address lists, and a search for an address may return various ...
11
votes
2answers
13k views

How do I convert SPUser to SPFieldUser?

I have a field in a list that accepts an SPFieldUser object. I have an SPUser object that I would like to populate that field with, but I cannot implicitly convert from one to the other. How would I ...
11
votes
6answers
24k views

How to query Sharepoint 2010 lists with sql?

I think it has to be a common task. We have some applications on sharepoint and we need to prepare reports with data from these applications. It would be great if we could use Reporting Services. We ...
11
votes
4answers
37k views

Minimum real world system requirements for SharePoint 2013

I've checked the SharePoint requirements here: http://technet.microsoft.com/en-us/library/cc262485.aspx which are apparently the "minimum" requirements, but I've seen some blog posts claiming to have ...
11
votes
3answers
18k views

Fastest way to delete all items with C# [duplicate]

Possible Duplicate: Deleting all the items from a large list in SharePoint What is the fastest way to delete all items in a list programmatically? I do not want to remove list and re-create ...
11
votes
4answers
11k views

Restore-SPSite to the same content database

I ran Restore-SPSite on my server from a backup. I then deleted the site collection and did it again but got the following error: Restore-SPSite : The operation that you are attempting to perform ...
11
votes
2answers
2k views

When to use SPItem vs SPListItem

I am confused on when to use SPItem vs SPListItem—specifically when grabbing items from a document library. What are the benefits of each and downsides of each.
11
votes
3answers
4k views

Is there a way to see if an SPField was created by a user?

I have some code where I am going through all of the Fields that belong to a content type. I'm curious if there is a way to check to see if the SPField was created by a user or if it is a system ...
11
votes
3answers
449 views

SharePoint database maintenance for the non-DBA

Question ported from Serverfault as it is specific to database maintenance for SharePoint administrators: For SharePoint administrators, SQL Server is often a black box that is installed as a ...
11
votes
4answers
6k views

CAML Now Instead of Today - CAML Bug?

I have a CAML query, in which the <Where> node looks like: <Where> <Leq> <FieldRef Name='PublishedDate'/> <Value Type='DateTime'> <Today/> ...
11
votes
3answers
840 views

What would cause a sharepoint publishing page to display a “Lorem ipsum”?

I've created a publishing page, placed a custom web part on in and published it. When I try to navigate to it I see this text instead of the content: Page Content field value. Lorem ipsum dolor ...
11
votes
5answers
7k views

When should I Create a Subsite in SharePoint

Recently I got into a position where I need to see a trade off of creating a Subsite in SharePoint. I would like to know what are all the scenario that we need to create a new Sub Site and why ? ...
11
votes
5answers
14k views

Sharepoint 2013 add css in a page layout

I'm trying to add my custom CSS file in my sharepoint 2013 page layout. I add it with the link tag or with CSSRegistration and when the page is rendered, the css does not appear in the source. Also I ...
11
votes
4answers
5k views

Best way to Impersonate in SharePoint

So far, I am aware of below 3 ways of performing impersonation in a SharePoint web part or page : Using Win32 API [DllImport("advapi32.dll", SetLastError=true)] public static extern bool ...
11
votes
1answer
2k views

“Incoming e-mail settings” hidden from custom document library

Very simple set-up: Visual Studio --> Add New Item --> List Definition. Type: Document Library. Besides that - no changes. Deploy. Result: As you can see: No "configure incoming e-mail settings" ...
11
votes
2answers
4k views

Backup Office 365 sharepoint site? (company.sharepoint.com)

Is it possible to synchronize or backup an Office 365 SharePoint site? The company I work for want to use Microsofts "cloud" SharePoint offering, but they wont go ahead if they can't back it up on ...
11
votes
1answer
4k views

Client Object Model Equivalent of SPSiteDataQuery?

I'm looking for an equivalent to the SPSiteDataQuery functionality in the Client Object Model (COM). The CamlQuery can be used with an instance of List to execute SPQuery level of aggregation, but is ...
11
votes
5answers
4k views

Can't install Sharepoint Foundation 2010 on Windows 7

I'd really like to prepare development environment for Sharepoint 2010. This is what I did: I installed Windows 7 x64 I installed VMWare Workstation Created a VM domain controller based on Windows ...
11
votes
2answers
4k views

Best practice for developing a WebService in SharePoint?

I've followed the following steps to build a WebService in SharePoint: Created a new project using WSPBuilder. Added a 'WebService' (Add a new web service to the layouts folder) Do a WSBBuilder ...
11
votes
3answers
6k views

Grab a specific property bag using ECMA script

I am trying to grab a key/value pair from a specific property bag but can't find any documentation or example code on how to grab a property bag. Currently I can only seem to grab allProperties. Here ...
11
votes
4answers
7k views

How to automate entry of external column data in BCS?

I have a document library, Resumes, that has a large number of resumes in it. There is a regular column on that library, called EmployeeID, that is already populated. I have an external content type ...
11
votes
4answers
28k views

Listing all checked out files

As a site administrator I have to list all checked out files in the site collection. Looking at the DB is looks like the tp_CheckoutUserId field in AllUserData might be a key to this query. Is it ...
11
votes
1answer
980 views

What order to apply SharePoint 2010 Enterprise SP1 and June 2011 CU?

It's September 2011. We just installed SharePoint 2010 Enterprise RTM. Want to install SharePoint 2010 SP1. Do we need to install SharePoint Foundation SP1 first? And should we install June update ...
11
votes
2answers
1k views

“Best Practices” for SharePoint customizations/development to easily migrate to new SharePoint versions

Do you know of any documents that describe “best practices” for SharePoint customizations (especially custom developments) in order for these customizations/code (for example web parts, event ...
11
votes
2answers
3k views

How to enable the “From SharePoint” link when inserting a link in a blog post?

When I create a new post in a Blog website, I would like to insert documents by picking them directly from my SharePoint libraries. Actually there is an option for that but it appears disabled even I ...
11
votes
5answers
14k views

Sharepoint multiple line of text char limit

I have created a custome list with a multiple line of text type column. When user enter value in this field in "add new item" form, I dont want user to enter more than 1000 chars. I am not able to ...
11
votes
3answers
1k views

Updating User Profile doesn't invalidate cache

The website I'm building has a heavily extended user model. The requirement is to have a single page where admins (who are windows authenticated users) can see the profiles of all the users. Regular ...

15 30 50 per page