For questions completely specific to SharePoint 2010 and **not past or future versions**

learn more… | top users | synonyms (1)

7
votes
4answers
12k views

Javascript to display sharepoint list items on page load

With Client Object Model API and a bit of javascript, I want to retrieve the items of a sharepoint list and display them into the web page, when the web page loads. I've successfully implemented ...
7
votes
4answers
9k views

Race condition in SPListEventReceiver.ListAdded - Save Conflict

I am currently developing an Event Handler for SharePoint 2010 which sets defaults for Document Libraries on creation (content types, version settings etc). I am having a problem with Save Conflicts ...
6
votes
3answers
17k views

Error : Object reference not set to an instance of an object on feature deployment

I am writing code for feature activated code. But when I try to deploy my solution through VS 2010 it says deploy failed Error on feature activation : object reference not set to an instance of an ...
4
votes
2answers
5k views

Copy file using javascript client object model - new version

I have a solution that adds a custom button to the ribbon in SharePoint 2010 and am using the javascript client object model behind the scenes to copy a file from Library A to Library B when the ...
4
votes
4answers
19k views

Display List or Library on another site as WebPart?

I want to display my list on another site in same site collection. I edit List with SPDesigner, select the view and save it to site gallery. After these steps, I added the view webpart on my another ...
4
votes
1answer
5k views

Can the zoom/scale on JS Grid conrol in gantt mode be changed?

I have created a webpart with a JS Grid control with gantt enabled. I want the gantt view to display months instead of weekdays. Anyone have an idea how to do this? Update: The following link is what ...
3
votes
1answer
11k views

Get Current User's Department Name and Manager From Active Directory

How the "department name" and "manager" attribute value could be retrieved from active directory programmatically? For ex. i will have custom newform.aspx to create some new item, in the code-behind ...
8
votes
5answers
3k views

Are there any problems with enabling Publishing Features on a Team Site?

I have a team site that we created for our department to use. It has a custom master page that we built. I want every subsite to use that same master page. I found that when I enable Publishing ...
8
votes
7answers
46k views

Unable to open office files in Office client

While trying to open an excel document stored in "Shared Documents" library, the excel application opens up with a login prompt, to which I passed the login credentials of the site. After which the ...
6
votes
5answers
28k views

How to create a WSP solution package with visual studio 2012 for an existing SharePoint site?

My manager told me: "We don't create a WSP package for an entire existing SharePoint site, we just need to package master pages, CSS, images and page layout files into a solution package." Is it ...
5
votes
3answers
527 views

Is there any alternative UI for sharepoint Ribbon Control to minimise height?

Sharepoint Ribbon bar is occupying more height space in our application and the business users want this to be avoided somehow. Can anyone suggest any other alternative UI to minimise the Ribbon ...
5
votes
4answers
3k views

Tips for starting SharePoint development

I'm going to start developing SharePoint applications and I'm looking for some good introductory resources (articles, videos, books, dev tools, tips). I'm comfortable with C# and ASP.NET development, ...
4
votes
2answers
15k views

How to show additional fields within the Content Query Web Part

I'm trying to use the Content Query Web Part to display all the tasks within a site collection, I've attached images of the Web Part properties and final output below. I'm looking for information on ...
4
votes
1answer
2k views

SharePoint RTE: How to attach to mousedown events (like bold, italic does)

When clicking on bold text in the RTE (rich text editor), magically the ribbon button for bold: get's activated. The same happens for the other format option buttons you can see on the screenshot. I ...
2
votes
3answers
4k views

How to get value of List Filter web part in Javascript?

I use the SharePoint List Filter web part on a page to control several Data View Web Parts. How do I read the current value of the List Filter in Javascript?
2
votes
2answers
2k views

Search issue with People Picker when limited to select from one group only

Some of you might have noticed that when you limit a people picker to select users only from one group, the search in the browse-user-dialog (or whatever it's called) won't work anymore. This is ...
2
votes
3answers
10k views

Custom Content Type for Calendar?

I have a calender list in my Sharepoint 2010 application. I want to make custom content types that the user can fill out that will make a calendar event. The problem is, if I inherit from the Event ...
1
vote
2answers
4k views

Get all Users with Info(LoginName,Id,Email,Title) in SharePoint 2010 Client Object Model C#

I have gone through this link : http://msdn.microsoft.com/en-us/library/office/ee538244(v=office.14).aspx But through this I am only able to get user details which are in groups. I am not able to get ...
11
votes
3answers
10k views

ListInstance with predefined data, prevent adding records to list with same name on deployment

I have a feature which on activation has to create a list called Scanners. Only one column from the list (Title) is actually used in my app. The list needs to be pre-populated with some values. To ...
7
votes
1answer
8k views

Remove a single user from all site collections in a web application using powershell

Is there a way I can choose to remove a single user from all site collections within a single web application using powershell. There are number of user profiles whose domain account has been blocked ...
7
votes
3answers
11k views

Best method to create custom NewForm / EditForm

I am new to sharepoint development and need to create some custom NewForm/EditForms for a new custom list I am creating. It seems like I have two choices: ...
4
votes
4answers
7k views

Did my workflow run on item changed or item creation?

Is there any way of identifying if my SPD (2010) workflow was initiated by item creation or by item modification? I don't want to split the workflow into two as 99% of the workflows would be ...
3
votes
3answers
7k views

Best practice SharePoint 2010 with SP1 and IE11, compatibility mode on or off?

I am using sharepoint 2010 with SP1. We would like to push on all our workstations IE11. But we don't know if we turn for the sharepoint sites compatibility mode on or off. What is the best, on or off ...
3
votes
1answer
2k views

How to List Documents in a SharePoint 2010 Folder with REST

I'm trying to access an SPS 2010 document library that contains folders, which in turn contain documents. I can successfully list the content of the library and see all folders and root-level ...
3
votes
2answers
10k views

Add additional field to lookup field inside schema.xml

I'm following the steps in this article to setup a joined data view webpart joined on a lookup field: ...
3
votes
1answer
5k views

How can I exclude disabled users from my user profile synchronization?

I have my user profile synchronization setup and working but I have noticed that disabled users who no longer work for my company are showing up in the sync. I would like to update the sync so that ...
3
votes
1answer
1k views

SharePoint 2010: Set a fixed upload location

When using Announcements or Discussion forms it's possible to upload a document when entering data into the body field. (The editing tools are available and when clicking on the insert tab the Upload ...
3
votes
4answers
5k views

Possible to save a list template and maintain lookup relationships?

My issue is that I have two lists that I would like to move with their data. While I am able to save both as templates and then upload to the new site, none of the lookup columns in my parent table ...
2
votes
2answers
575 views

ListData.svc and Task Approval

How can I approve a workflow task using the ListData.svc? I am attempting to just set the value of ApprovalValue to "Approved" but this is not working at all. Any help you can give will probably save ...
2
votes
4answers
23k views

Show only a subfolder of a document library in a web part

I want to show only a particular folder in the right pane of a page using a webpart in Sharepoint Foundation 2010. Is this possible? When adding the webpart, I could only add the document library. ...
2
votes
1answer
103 views

Resources are deleted during solution retraction

I have a solution deployed in several web applications. If I retract it from one of them, resources from the /wpresources/ folder will be deleted, although there are web applications that still need ...
2
votes
1answer
4k views

Inserting Lookup columns into Data View Web part displays as XML

I am trying to configure a Data View web part in SP Designer 2010. I am connecting it to a list called Data Returns. Data Returns includes a mixture of Fields, some text, some choice, some lookup. ...
0
votes
1answer
1k views

How to edit xslt for thumbnail view of Asset Library.?

I have added an XsltListViewWebPart which refers to the Asset Library in the site. I have given reference of AssetPick.xslt for thumbnail view for that web part. I want to put the Title in place of ...
0
votes
1answer
1k views

Showing the tab on button click

Basically my questiong is regarding the ribbon. So I want to have the following behaviour, when a person clicks on the button, the contextual ribbon tab should be opened. Any idea how to do that? I ...
0
votes
2answers
7k views

Stop inheriting permissions programatically

I want to set read permissions to some sharepoint groups to a list. For existing sites I did it manually, Stop Inherit permissions. Then on groups I chose the groups and edited their permissions, ...
5
votes
2answers
4k views

Is there a SharePoint 2010 virtual machine?

Is there a downloadable, ready to use, virtual machine with sharepoint 2010 and all prerequisites already installed? I just googled it but apparently it does not exist. I just want a quick way to ...
5
votes
1answer
2k views

more than one attachment field

We are planning to retire one of our old fashion tools and currently evaluating Sharepoint 2010. in our current tool, we have 3 different attachment sections two of which are visible to customer, and ...
4
votes
1answer
6k views

Feature activation error: System.InvalidOperationException: Operation is not valid due to the current state of the object

i have taken one List Email event receiver(Type is EmailReceived) and that event receiver attach with document library. when i am activate that feature got error. i have check on ULS Viewer. error ...
3
votes
1answer
42 views

Differing ways to make executeQueryAsync calls (Function.createDelegate)

I want some understanding on two programming patterns I've seen and when to employ them. The question is about callbacks and delegate. In the first code there are two distinct functions, success ...
3
votes
1answer
6k views

InfoPath form: How to redirect to the previous page after pressing on the submit button?

I am using SharePoint 2010 Online (Office 365). I have created a form in InfoPath for an external list. You see some fields and a submit button. When I press on the submit button everything is ...
3
votes
1answer
2k views

Need to remove 'New!' icon for new items added in Document Library

In our organization 'New!' icon is creating some confusion. Is it possible to remove the icon for some specific libraries only?
3
votes
2answers
2k views

Exception “The SPListItem being updated was not retrieved with all taxonomy fields.” at changing TaxonomyField value

This problem appears only on one particular Document Library. I use TaxonomyField.SetFieldValue(myItem, myTaxonomyFieldValue); and it works fine everywhere except this lib. Can anyone suggest a ...
3
votes
1answer
705 views

User profile synchronization for User profile properties

IN SP2010, I have added 3 new User profile properties by Central Admin of type boolean, datetime and string.Then I added data for the user in the profile for these new properties. I ran the "User ...
3
votes
4answers
10k views

How to get list by url using client object model?

Is it possible to get list by url using ECMA script client model? For example something like this: context.get_web().get_lists().getByUrl("Lists/MyList"); UPD!: Please, refer to this correct ...
3
votes
7answers
6k views

ArgumentException when trying to access SPListItem value

I have a tool to update all items in SP (link replacement). The tool works most of the time but sometimes it throws me an ArgumentException ("Value does not fall within the expected range."). Here is ...
2
votes
3answers
115 views

How do I get my SharePoint 2010 Management Shell to open to PS C:\> instead of PS U:\>?

Whenever I open my SharePoint 2010 Management Shell on my remote desktop, it opens to PS U:\> rather than PS C:\> as it does on my coworker's machine. ![PS_U][1] How do I get it to ...
2
votes
2answers
2k views

Deleted item still showing up in search results if only doing Incremental Crawls

I'm trying to set up a Sharepoint search service using a Content Source based on an external BCS data source. In the BDC model, I implemented the operations I needed, adding a SpecificFinder, an ...
2
votes
2answers
4k views

CAML Query for sub folder documents javascript

I'm trying to query for documents in a specified sub folder of a document library. Using U2U CAML builder, I can generate the query and return successfully within it. However, when I run the query ...
2
votes
2answers
12k views

Create a SharePoint list form with MULTIPLE repeating tables to submit to a SharePoint List

I've been trying to create a SharePoint List form that has MULTIPLE REPEAT TABLES. When I try the solution at: submit multiple entries to one list with one infopath form I am not able to add an ...
2
votes
1answer
158 views

Using solutions and features in creation/branding of SharePoint websites

I am new to SharePoint website creation and branding and I need your advice. For my first SharePoint site I have done the following: 1- Created/edited a master page. 2- Added CSS and JavaScript ...