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 ...
13
votes
Accepted
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) ...
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:
...
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]-...
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.
:)
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 = ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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.
...
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:
...
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].
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 ...
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 ...
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
...
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.
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....
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 ...
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 ...
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....
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.
...
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
//
...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
view × 563list × 111
2013 × 98
list-view × 96
sharepoint-online × 71
document-library × 64
2010 × 49
filter × 44
sharepoint-enterprise × 35
web-part × 31
sharepoint-server × 30
calendar × 28
permissions × 27
sharepoint-designer × 21
library × 19
sharepoint-foundation × 18
datasheet × 17
javascript × 16
column × 15
infopath × 13
grouping × 13
sharepoint-calendar × 12
powershell × 10
2007 × 10
custom-list × 10