11
votes
5answers
12k views

SP.UI.ModalDialog.showModalDialog using the html option

http://msdn.microsoft.com/en-us/library/ff410058.aspx says that you can use the option html to display html text in a modal. I have a string like this; var html = ...
11
votes
6answers
21k 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
3answers
10k 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
421 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
3answers
814 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
4answers
4k 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

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....
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
2k 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 ...
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
3answers
4k 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
1answer
949 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
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 ...
11
votes
3answers
4k 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
1answer
796 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 ...
11
votes
1answer
356 views

View problem when attaching workflow to list programmatically

Very irritating problem. I have a list with the following view <View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,All_Documents;" DefaultView="TRUE" ...
11
votes
2answers
938 views

Why is my workflow DependencyProperty event handler not firing?

I have a custom workflow activity (SharePoint 2010) with a Dependency Property defined as follows: public static DependencyProperty TaskChangedEventPropertyEvent = ...
11
votes
1answer
364 views

Invoking an ActivityAction in a SharePoint workflow

In a Visual Studio, SharePoint 2013 workflow, the "IF" Activity provided by Microsoft can take a condition and two activities as parameters: I want to write a custom activity that can similarly ...
11
votes
3answers
818 views

Modal Dialogs and Minimal Download Strategy

I am having the following issue in SharePoint 2013 Online (Office 365 Preview): when I try to display in a modal dialog a page that relies on MDS (Minimal Download Strategy), the dialog opens but then ...
10
votes
4answers
7k views

How to log off user from SharePoint site, if the user has been inactive for 20 minutes

How to log off the SharePoint site, if the user is has been inactive for for 20 minutes? Do I need to redirect user to logout page? How would I count the idle time?
10
votes
4answers
7k views

SharePoint 2010 CSS Reference

For SharePoint 2007, Heather Solomon made a reference chart for all CSS elements used by SharePoint 2007 so that they could be overridden when branding a SharePoint 2010 site. Does any such reference ...
10
votes
9answers
6k views

ASP.Net WebPart or SharePoint WebPart

This is an almost religious question; what are your preferred base classes for building WebParts in SharePoint? Are you using the ASP.NET WebPart (System.Web.dll) or the SharePoint WebPart ...
10
votes
4answers
30k views

Change Title (linked to item with edit menu) to different column

How can I change the column in a SharePoint list that has the link to the item and the link to the item with edit menu eg: Title (linked to item) Title (linked to item with edit menu) I want to have ...
10
votes
7answers
17k views

How to sync a SQL database with a SharePoint List?

I need to sync an already existing SQL Database to a SharePoint 2010 list. Two way sync would be great but one way sync is also alright. Any documentation in this regard would be of a great help. ...
10
votes
5answers
3k views

SharePoint vs Confluence Wiki

I have been using SharePoint now for 3 years and I really like it and would really like all employees in our company to move over to SharePoint from our Confluence Wiki. I want them to have their ...
10
votes
2answers
11k views

How do I check if a site already exists from PowerShell? [duplicate]

I have a script that exports a site and restores it in another web application. I want to check if the target site already exists. Is there an easy way to tell if www.example.org/sites/asite/ is ...
10
votes
5answers
7k views

How to restrict a document library to a specific file type (extension)?

I have a SharePoint intranet site where I need to allow users to upload certain documents. These documents need to be only PDF files for example. What is the simplest way to restrict the document ...
10
votes
10answers
13k 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 ...
10
votes
2answers
12k 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 ...
10
votes
4answers
22k views

Powershell: cannot access the local farm

Yes, I am logged into the machine as an administrator, and my domain account id a farm admin as well. The site is running properly, and nothing seems wrong in SP Central Administration. But when I ...
10
votes
9answers
33k 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?
10
votes
5answers
7k views

Which is the easiest way to migrate entire List to a new new site?

Hi I need to migrate a list with 800+ items to a new location but within the same site collection. Which is the easiest way to do it. I want it to be a exactly same with all data, attachements etc ...
10
votes
2answers
3k 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 ...
10
votes
2answers
1k views

color code in sharepoint calendar

I have sharepoint calendar and I want the entries to be in color based on status. If user add one entry and status is initially pending then that task would be in green, later it get changed to 'in ...
10
votes
1answer
6k views

SPList.Add() vs SPList.AddItem() SharePoint 2010

Using some test code i found out that SPList.AddItem() executes slight faster then SPList.Add() - does anyone know why is it so ? DateTime start = DateTime.Now; SPList ...
10
votes
7answers
52k views

How can I learn the basics of SharePoint 2013 in a few days?

I have very little knowledge of SharePoint, and want to learn about SharePoint 2013. Most of the resources that I've found are either about what's new in 2013, or they have a bunch of links to ...
10
votes
1answer
4k views

Understanding Data Sheet view list better in SharePoint 2010

I would like to know more about the features of Data sheet type lists. Can I use conditional modification to the data sheet rows, for example changing the color if a column value equal 'X' ? Can I ...
10
votes
3answers
1k views

How can I query for “AssignedTo = [ME]” using REST?

It is quite common to use "Assigned To = [Me]" in SharePoint views to list the tasks / items which are assigned to the current user. This of course includes both the items which are directly assigned ...
10
votes
3answers
14k 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 ...
10
votes
10answers
4k views

Has anyone optimized the front-end (css/javascript files) of a SharePoint site

So it seems to be that Sharepoint's front-end optimization is non-existant. For example, http://dfs.us.dell.com/Pages/DFSHomePage.aspx, according to YSlow, is serving up 14 separate JavaScript files, ...
10
votes
5answers
30k 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 ...
10
votes
4answers
4k 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/> ...
10
votes
6answers
16k views

Site collection owners and site collection administrators. Can anyone explain the difference in plain english

Just found this on MSDN and I'm confused. the Owners group of a site is not the same as the site collection owners, which themselves are called site collection administrators in the Central ...
10
votes
5answers
6k 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 ? ...
10
votes
3answers
12k views

SP.SOD how to use correctly?

SP.SOD is a nice feature of SharePoint, but how should I use it? For example, I use these lines of code ExecuteOrDelayUntilScriptLoaded(function () { //code }, "custom.js"); If I understand ...
10
votes
4answers
5k views

How to save variables per user session per page

I am using three webparts. Webpart A creates a value when the user clicks on the button in Webpart A. WebPart B uses this value to create a list with items the user can select. WebPart C uses both ...
10
votes
2answers
1k views

Best way to package publishing content types

I'm currently planning on how to package my Publishing content types in a WSP to make deployment in production easier. I came a cross the following choices 1- create a feature receiver and ...

15 30 50 per page