A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.
41

There's an out-of-the-box way to remove the Add new item link. If you edit the webpart properties using the Modify Shared Web Part command, you'll find the Toolbar Type dropdown in the List Views section. If you choose No Toolbar there and save the page, the footer link will be gone. No code required, no unghosting/customization, and no effect on other web ...


35

You cannot use the following characters in file/folder name: Tilde (~) Number sign (#) Percent (%) Ampersand (&) Asterisk (*) Braces ({ }) Backslash (\\) Colon (:) Angle brackets (< >) Question mark (?) Slash (/) Plus sign (+) Pipe (|) Quotation mark (") There are also restrictions about the positition of a character in a file/foldername: You ...


25

In SharePoint 2013 was introduced a so called Client Rendering Mode (CSR) which represents a rendering engine for list views, list forms and search results. I would recommend you to consider the following approach for your task. How to highlight the rows using CSR Below example demonstrates how to highlight list task rows based on their status ...


22

Both the description and the solution of your issue can be found here : Unable to Open PDF Directly from SharePoint 2010 ([Link edited on 11/20/2013]. Basically, it's a security feature (that can be disable, if you accept the implication), that prevent some files to be displayed in the browser directly. Typically, what would prevent someone to put some ...


19

You can change the URL of a SharePoint 2013 List in Designer by following the steps outlined in this SO post: Change SharePoint Library URL Essentially: In SharePoint Designer just navigate to All Files navigation node (not List and Libraries node), find your list there -> right-click list -> rename. The URI would change then.


19

The following example demonstrates how to determine whether current users belongs to the specified groups: getCurrentUserWithDetails() .done(function(data) { var groupNames = ['News Owners','Approvers']; //determine wether current user is a memeber of group(s) var userGroups = data.d.Groups.results; var foundGroups = userGroups.filter(...


18

~, #, %, & , *, {, }, \, :, <, >, ?, /, |, “ above special character is not allowed for files/folder.. you need to replace these characters for create folder or files..


17

If you just want to hide it, you can use following css (you must override sharepoint core css with your custom css file) td.ms-addnew{ display:none; }


17

Preparing your JS files for SP2013: Modify JQuery and all additional libraries to be in the SharePoint namespace To add a file into a namepsace surround it with this code: // Example for JQuery, replace jquery with your library name function $_global_jquery() { // Library code goes here } $_global_jquery(); This will ensure correct On Demand loading ...


17

For listing item in a particular order you should use orderby in the URL var queryGet = "?filter=Title ne 'reply'&$top=10&$orderby=Created desc"


17

In a caml query, you will need to use <Today> token with OffsetDays. For e.g. <Where><Leq><FieldRef Name='Your_Date_Column' /><Value Type='DateTime'><Today OffsetDays='7' /></Value></Leq></Where> Reference: Using the Today token in a CAML query


15

As far as I know, this is not possible by using "Calculated Value" property of "DOB" column as self referral is not allowed. What you can do is create a new "Calculated" column and then use formula =TEXT(DOB,"dd MMM yyyy"). Select "Date and Time" in data type returned and use "Date only" in format. This will solve your purpose.


15

I'm going to go over this in a bit more detail, because none of the above answers were clear to me. How to Move a SharePoint List from One Site to Another 1. Go the the List Settings of the list you want to move 2. Click Save list as template 3. Give the list template a descriptive file name, template name, and description 4. Go to the site's List ...


13

SharePoint allows you to share files (it's a document library), but it's also a document management system allowing versioning, check-outs, etc a CMS which can contain lists, blogs, wikis, etc a notification system for advising when items have changed or are added an extensible development platform allowing web parts that work much like desktop ...


13

SP Foundation does not include the User Profile Service, as @Aveenav noted. Therefore you probably do not have access to the REST endpoints for that service. Instead you will have to use the user information list to get this information. This will require two requets: one to get the current user's id, the second to get the user's info that you want. ...


12

When you deploy a solution with a WebPart it deploys three things: The dll with the web part A SafeControl entry to be inserted into web.config A .webpart (or .dwp) file with configuration settings to be inserted into the Web Part Gallery (this part actually happend at feature activation not at solution deploy, but..) When you're adding a web part to a ...


12

If you are using SharePoint 2013 or SharePoint Online, you can take advantage of JSLink to render your Status field as you want - in this case a button with some javascript logic behind it. The process would be very similar to the one described here: http://sharepoint-community.net/profiles/blogs/using-jslink-to-implement-delete-buttons-for-list-view. I'm ...


12

The green star shows up for new documents. When a new document is created/uploaded green star will be displayed. By default it showed for 2 days but you can change it as per your need. Please read more here: http://www.sharepointdiary.com/2012/02/new-tag-indicator-in-sharepoint.html Also note in case of checkouts, you see the green arrow on the Word icon ...


12

You can do the following: var options = { url: 'https://sp2013dev/sites/dev/Shared%20Documents/Forms/EditForm.aspx?ID=9', title: 'My Title', allowMaximize: false, showClose: true, width: 400, height: 350, dialogReturnValueCallback: function(result){ if (result == SP.UI.DialogResult.OK) { window.location....


11

If you use linq to object, you always retrieve ALL records from DB. It is not good if you have got a lot of data. To reduce records you can use CAML query: SPQuery query = new SPQuery(); query.Query = "<Where>" + "<Eq>" + "<FieldRef Name=\"FileLeafRef\"/>" + "<...


11

SharePoint has already lots of icons available in the DOCICON.xml file (14-Hive at C:/Program Files/Common Files/Microsoft Shared/web server extensions/14/TEMPLATE/XML) Simplest way could be to load based on file extension "/_layouts/images/icXXX.gif (where icXXX, would be icdoc.gif, idpdf.gif, etc.)


11

I discovered that the problem comes from the program Microsoft Visual Studio 2010 Shell (Isolated) - ENU that gets installed with SQL Server 2012. After uninstalling that program and then running the SharePoint 2013 installer I am able to see the splash screen. Warning - This will prevent Sql Server Management Studio 2012 from working on that machine.


11

As a part of the new Minimal Download Strategy (MDS) the sp.js library is not loaded until explicitly called in SharePoint 2013. Your case is pretty common, for example for a publishing pages, where sp.js library is loaded in the edit mode but not in the display mode. Solution Prefer SP.SOD.executeFunc over SP.SOD.ExecuteOrDelayUntilScriptLoaded ...


11

Unfortunately it doesn't seem possible to achieve using neither REST nor JSOM. So, the workaround, as you correctly mentioned in the question would be to utilize SharePoint Search REST/JSOM and specify contentclass:sts_site to return sites results. The following REST example demonstrates that: function searchSites(webUrl,success, failure) { var url = ...


11

I know this question was asked long ago but it might help someone in the future. If you want to get all the users in your Sharepoint site you can use : /_api/web/siteusers? If you want to get the properties of the current user on the site then you can use : /_api/web/currentUser? I hope this helps.


10

If you don't want to make the change globally, you could use a Content Editor Web Part (CEWP) on the desired page. Edit the HTML source of the CEWP and insert Hameds' code inside a style tag: <style> td.ms-addnew { display:none; } </style>


10

From my experience, this is not possible through the SharePoint Dataview Sheet View. This is a new feature in 2010 and although super delicious and powerful, it still has a lot of issues that need to be resolved before it will be as powerful as it can be - in 2013, Microsoft has made improvements as per this article from MSDN To answer your question - in ...


10

You need to get the values into a collection object and then iterate through them and test it it is a group, if not assume it is a user, as follows: SPFieldUserValueCollection objUserFieldValueCol = new SPFieldUserValueCollection(web, listitem["UserGroupField"].ToString()); for (int i = 0; i < objUserFieldValueCol.Count; i++) { SPFieldUserValue ...


Only top voted, non community-wiki answers of a minimum length are eligible