Hot answers tagged

21 votes
Accepted

How to display more than 3 views in document library?

Since you are using SharePoint 2013 I would recommend you to consider the following approach. In SharePoint 2013 was introduced a so called Client Rendering Mode (CSR) which is intended for rendering ...
user avatar
13 votes
Accepted

View filter settings: how to implement [TODAY] - 6 months

Have you tried using [today]-180?
user avatar
  • 1,305
11 votes
Accepted

Hide/Remove the three little dots (Callout) in a library

Modify the view and select "Title" column instead of Title (linked to item with edit menu) . If you want Title column to be clickable, which opens the item itself then select Title (linked to item) ...
user avatar
  • 8,769
9 votes
Accepted

Updating a view using powershell

Get the web and list: $w = Get-SPWeb http://localhost $l = $w.Lists["My list"]; This is how you select the view "All items": $view = $l.Views | ? { $_.Title -eq 'All items' } Then just add fields: ...
user avatar
  • 1,374
9 votes
Accepted

Filter view by current year

In the Filter settings of a View you can only use [Today] as is, you can do simple +- calculations but you can not use Functions. Remember: Do not add spaces in your View Filter calculations: [Today]-...
user avatar
8 votes
Accepted

SP2013: How to hide the links of custom view?

Edit that page Edit web part Pages Under Miscellaneous check Disable view selector menu Click OK and Save page. :)
user avatar
  • 2,527
8 votes
Accepted

How to get SharePoint list items from specific view using c#?

Try below code. It fetches all items from My Tasks view. using (SPSite site = new SPSite("https://sitecollectionurl")) { using (SPWeb web = site.OpenWeb()) { SPList list = ...
user avatar
  • 30.2k
7 votes
Accepted

Workflow Task List - View Filtered By Assigned To = [Me] not working for SPGroups

If you have a SharePoint task list where the task is assigned to a SharePoint group, you may notice that the My Task list does not show tasks even if you are a member of the group of which the task is ...
user avatar
  • 56.7k
7 votes
Accepted

How do I change the displayed view order for a list in SharePoint 2013?

Below is the javascript for JSLink(display template) file which does the custom sorting. You need to modify the 'viewNames' array to include the view names for your list. Add them to the array ...
user avatar
6 votes

How to display more than 3 views in document library?

I do not think that can be done. It shows the 4th view only once we click on it. (Dynamic HTML) But I found a workaround. Go to Edit Page. Click on Add web part and add a content editor with the ...
user avatar
6 votes

Get active view of sharepoint list by JSOM

SharePoint 2010 Use ClientContext structure that is generated on the client-side and contains List View details: //find active View Id function getCurrentViewId(listId) { var viewId; for(var ...
user avatar
6 votes

Filter current month in list

You need to add two calculated columns that will work out the start and the end of the month. (This example uses [Due Date] but you can use any date/time column) "Start of Month" =DATE(YEAR([Due ...
user avatar
  • 1,030
6 votes

How to Filter by Workflow Status

Try filter by numbers: Status Value Not Started 0 Failed on Start 1 In Progress 2 Error Occurred 3 Canceled 4 Completed 5 Failed on Start (retrying) 6 6 Error Occurred (retrying) 7 ...
user avatar
  • 1,581
5 votes

How to create a view to list all unpublished page in library?

Without code On library click Create new view based on for ex. All items. Check columns you want to view and sort it how you like. Under Filter click Show items only when the following is true ...
user avatar
  • 2,527
5 votes
Accepted

List view filter callback

You could use Client Side Rendering (JS Link) and the OnPostRender property. When you use a filter in the list view it will trigger the OnPostRender again. Check out this article for more information. ...
user avatar
  • 6,238
5 votes
Accepted

Re-order SP2013 views

The following CSR template demonstrates how to customize the appearance of menu options in list view, in particular in the example menu options are displayed sorted by title in descending order: ...
user avatar
5 votes
Accepted

How to create a view thats filter a group or person type field

You have to use person/group field is equal to [Me], not contains. Even if the person/group field contains multiple users, it will still filter correctly when using is equal to [Me].
user avatar
5 votes

How to get SharePoint list items from specific view using c#?

Get sharepoint list items by view name: using (SPSite site = new SPSite("http://siteURL")) { using (SPWeb web = site.OpenWeb()) { // Get data from a ...
user avatar
  • 3,197
4 votes
Accepted

Page Layout html xsltlistviewwebpart with custom view

This might classify as more of a work-around than a solution, but I used the guid of the view as the webpart id. I decided to look into the content database to see how views are stored. In the stored ...
user avatar
  • 361
4 votes
Accepted

Alerts on List based on Items shown in View not working

Did some testing and it seems that filters on some column types doesn't cause alerts to go off. Examples of column types that work on alerts on views with filters: Single line Multiple line ...
user avatar
  • 566
4 votes
Accepted

Is it safe to change title of view AllItems.aspx in Document Library?

I don't think this is a problem. Otherwise you could create a new View which looks the same as AllItems.aspx, set this as default view and give it your desired title.
user avatar
  • 1,224
4 votes

Set task list to standard view not quick edit mode

I have experienced this same issue. What I have found is that after you add the first item the list view will default to the Standard View NOT Quick Edit. So just add one item, navigate to the view (i....
user avatar
  • 323
4 votes

Set task list to standard view not quick edit mode

I've had the problem many times and solved it quite easily. I don't know the root cause, but the solution is to create a new view. I only experienced this when creating a new list. Typically making ...
user avatar
  • 193
4 votes

Creating a view for 2 weeks ago

You can create a filter on the "Created" column and use: [Today] -1 to return records/documents created yesterday (for example). If you use multiple filters, you can filter documents for -14 days ago ...
user avatar
4 votes
Accepted

Best way to share documents where some must not be shared

You can break permission inheritance within your library (for each item / document): Break the permission inheritance for the 10 "semi-public" files and assign new permissions to each of the 10 files....
user avatar
  • 1,472
4 votes
Accepted

Hide completed tasks in task list

You have to edit the view and filter completed tasks. It can be confusing because there isn't an intuitive value to filter for the Completed column. Open the view menu and click Modify this view. ...
user avatar
  • 2,320
4 votes

How to get SharePoint list items from specific view using c#?

Here is the c# Client Object Model code to retrieve items from a custom view. static void Main(string[] args) { // Connect to your SharePoint site and load object of your custom view // ...
user avatar
  • 5,928
4 votes

SharePoint Online New Experience - Remove View from SP List

There is not a way to remove this dropdown, as it functions as the only way to change views in the New List Experience. In Classic lists, there are ways to add JS to the page so that you would be ...
user avatar
  • 667
4 votes
Accepted

How to limit Visitor group to just edit one view in the list and not see the other view

You can achieve this by applying target audience to the list view web part. Following are the steps. Switch to Classic Experience. Edit the AllItems.aspx page. Edit the List View Web part and in the ...
user avatar
  • 1,698

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