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
4answers
10k 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?
11
votes
5answers
2k views

Can I tell what version of SharePoint is being used from JavaScript?

I have some static JavaScript being rendered to a page and would like it to behave differently if the version of SharePoint it is being displayed by is 2013. Can I tell what version of SharePoint is ...
11
votes
16answers
28k views

incoming mail just sits in the drop folder

I want a document library to recieve email and store it so followed the steps outlined here: http://sharepointgeorge.com/2010/configuring-incoming-email-sharepoint-2010/ I seem to be a bit stuck. ...
11
votes
4answers
12k views

How do we activate auditing in SharePoint Foundation 2010?

We are trying to set up SharePoint auditing to audit reading of list items and are having problems finding how to turn it on. Is this supported in the Foundation version? If so how do we activate it?
11
votes
3answers
7k views

How to enable publishing feature using CSOM?

How to enable site collection publishing infrastructure and site publishing features using CSOM?
11
votes
3answers
11k 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 ...
11
votes
10answers
17k 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
28k views

ExecuteOrDelayUntilScriptLoaded not executing after page publish

In SharePoint 2013 I have a page that is using the Script Editor web part. In the script editor web part I have the following: ExecuteOrDelayUntilScriptLoaded(startIt, "sp.js"); function startIt() { ...
11
votes
4answers
35k views

How to have two web parts side by side in same zone

I have two web parts that i want to fit side by side in the same zone, however, I'm not sure how to go about this. I've modified the width of the individual web parts to be able to fit side by side ...
11
votes
7answers
34k 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
2answers
6k 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 ...
11
votes
2answers
494 views

Sharepoint 2013 - show ribbon to admin only

Is there a tutorial or specific bit of code I can use to hide the ribbon for all users except admins or a user group? This needs to be for sharepoint 2013 (rather than 2010) Can anyone help please?
11
votes
4answers
23k views

What's the difference between a document center and a records center?

I'm not clear on the differences between sharepoint's built-in templates for ECM. Document Center A site to centrally manage documents in your enterprise. Records Center This template creates a ...
11
votes
1answer
25k views

ExecuteOrDelayUntilScriptLoaded with sp.js when in debug mode Object Expected

I currently have a JavaScript file that gets loaded in my SharePoint pages. jQuery(document).ready(function() { ExecuteOrDelayUntilScriptLoaded(myfunction(), "sp.js"); }); myfunction = function(){ ...
11
votes
5answers
38k views

Is there a way to disable X-FRAME-OPTIONS response header, or at least modify it?

I want to embed my sharepoint 2013 pages in another document, but the X-FRAME-OPTIONS are set to SAMEORIGIN by default. Adding ALLOW-FROM url does not work when added to the web.config OR on specific ...
11
votes
5answers
18k views

This product requires Microsoft .Net Framework 4.5

I already Installed Microsoft .Net Framework 4.5 in Windows Server 2012 Release Candidate Data Center using Features. but When i started to install SharePoint 2013 then it gives following error. ...
11
votes
6answers
10k views

Risk of conflict between jQuery document ready and _spBodyOnLoadFunctionNames?

I recently read in the jQuery documentation that: The .ready() method is generally incompatible with the body onload attribute. If load must be used, either do not use .ready() or use jQuery's ...
11
votes
5answers
15k 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
3answers
10k views

What is the difference between PreSaveAction() and PreSaveItem() on SharePoint list forms?

I am performing some custom validation on a custom list form using javascript. I had my code in "PreSaveAction()" and it was working. At some point it stopped working and I determined that the code ...
11
votes
3answers
481 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
19k views

Getting 401/403 in High Trust App for Sharepoint 2013

I have this Cloudshare environment consisting on 3 machines: One for Sharepoint 2013 (this is where I develop with VS2012 installed) Another for SQL Server 2012 And another for Active Directory I'...
11
votes
4answers
15k views

Creating a Site collection programmatically throws exception <nativehr>0x80070005</nativehr>

I'm migrating a SharePoint customization from MOSS 2007 to SharePoint Server 2010 (Win 2008), which creates the Site Collection programmatically. Problem is I'm unable to create the Site Collection ...
11
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, ...
11
votes
8answers
14k views

How do I determine a user's SharePoint group membership using the client object model?

I want to redirect users from a landing page to another page in SharePoint 2010, based on their group membership. I need to do this using JavaScript (ECMAScript) and not server side code.
11
votes
2answers
650 views

Which one is faster CSOM or JSOM

Understanding which one has better performance for performing CRUD operation in SharePoint List, CSOM or JSOM?
11
votes
5answers
5k views

SharePoint 2013 hide elements (in body area ) when ribbon is expanded / ribbon is in use

Is there a css class/id in SharePoint 2013 that hide elements when the ribbon is in use? I've got some elements that I don't want to show when the user's in edit mode! In the picture below you can ...
11
votes
9answers
44k views

Update user profile for user whose account name has changed in AD

We have an issue with User Profile Sync in SharePoint 2010 when the following happens: A new user is added to AD (i.e. DOMAIN\jdoh) The user is synched successfully to SharePoint Time passes The ...
11
votes
3answers
12k views

Should i have the “Microsoft SharePoint Foundation Web Application” role active on all servers in a large farm?

I've checked the resources at Microsoft TechNet, MSDN and Bing but I’m not aware of any information regarding the best practice about the configuration for the "Microsoft SharePoint Foundation Web ...
11
votes
3answers
7k views

How to disable launch modal dialog in list definition schema.xml?

I have a sharepoint 2010 site template. The site template activates a feature that deploys several lists. Some lists need to open the new/edit/display forms in full page mode. Is there a way to ...
11
votes
4answers
6k views

Can't upload a non-text file to SharePoint App via REST API

I am using the following REST code to add a file as an attachment to a SharePoint 2013 list item. <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <SharePoint:ScriptLink ...
11
votes
6answers
43k views

How to add a hyperlink anchor in a Sharepoint wiki-page

In Sharepoint (2010) wiki pages it is easy enough to add a hyperlink, but how can one add a hyperlink anchor without editing the messy html? You can see here that, although I've got a link and typed ...
11
votes
3answers
11k views

Hiding buttons of the Ribbon Bar

Is it possible to hide specific buttons of the SharePoint 2010 Ribbon Bar based on the user's permission on publishing pages? For example, we need to hide the font dropdown and under the Insert tab, ...
11
votes
7answers
13k views

Why don't Lists and Libraries show up in SharePoint Designer?

I have a SharePoint 2010 site that works correctly, and a subsite that does not. When I open the subsite in SharePoint Designer, the "Lists and Libraries" view says "There are no items to show in ...
11
votes
2answers
13k views

Validate if the entered text is number

Is it possible to write column validation to check if the entered text is number? I have a column named Year of type Single line of text. I would like to be able to stop the user if he or she enters ...
11
votes
5answers
11k views

Paging and sorting with BCS

I going to use the new exciting External Content Type feature to display a list of data from an external LOB system. The list is potentially long, so paging with filtering at the LOB system side is ...
11
votes
1answer
3k 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
1answer
5k 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
5k 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
1answer
3k views

What are the differences between creating Search center as a subsite vs a new site collection?

What are the differences between creating Search center as a subsite vs a new site collection? What are the benefits of creating it as as new site collection v.s a subsite.
11
votes
4answers
2k views

Multiple solutions using shared DLLs can cause havoc when individual solutions are retracted

Problem: Multiple solutions using shared dll's can cause havoc when individual solutions are retracted. Example: You have a web part helper dll used by all your web part code. If you retract a ...
11
votes
1answer
5k views

How to Impersonate Users Via Client Object Model?

I want to insert new SP List items -- blog comments, to be exact -- on behalf of other users. Ideally, I'd just pass a SharepointID for the user, but that doesn't seem to be possible. I think that ...
11
votes
2answers
2k 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
4k 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
4answers
23k views

How can I use the SharePoint Javascript Object Model from a plain HTML page?

I would like to use the SharePoint Javascript Object Model from a "plain" html page (ie, not an .aspx application page etc.) Is this even possible? If so, what scripts should I reference? I've added ...
11
votes
2answers
7k views

(Solved) Start a Workflow of the Host-Web via SharePoint App and JSOM

The Last Update is the Solution I have got an App for SharePoint 2013, which needs to start a Workflow. This Workflow is in the HostWebContext, not in the AppContext. The List, the Workflow is ...
11
votes
5answers
4k views

RichHTMLField value is not rendered in page

I have a custom page layout created, in which "PublishingWebControls:RichHtmlField" control is added with some default HTML value. When any page is created using the custom page layout created, page ...
11
votes
9answers
20k views

View list from another site collection (Why no easy answer?)

In Sharepoint 2010 whats the best way to view a list from another site collection. I want to be able to sort on People and I want it to look like a listview. (Why is there no easy answer to this ...
11
votes
3answers
3k views

Purpose of the <MAPPINGS> CAML element in a custom Choice Field definition

I have yet to find a clear answer to this topic, so I'm writing this question in hope that someone can explain me the correct way to achieve my goal. I must also add that all my test was done on ...

15 30 50 per page