28

I expect you have "BaseViewID" attribute set to "0" on the "View" element of your custom list definition. You should change this attribute to some other value (in range 1..255) and the problem should vanish then. Although this is actually all you need to solve the issue, I anticipate you might want some more detailed explanations :) Actually, BaseViewID is ...


26

The following example demonstrates how to retrieve list items for a View using SharePoint REST: function getListItems(webUrl,listTitle, queryText) { var viewXml = '<View><Query>' + queryText + '</Query></View>'; var url = webUrl + "/_api/web/lists/getbytitle('" + listTitle + "')/getitems"; var queryPayload = { ...


23

Create a list view and set the filter; where date time column is not empty (see below)


20

SP 2013 uses clienttemplates.js to create the those views control. You can either create a JSLink or add the following script using the script Editor webpart to the page where your list view resides. <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(overrideSurfacePivotCount, 'clienttemplates.js'); function overrideSurfacePivotCount() { ...


20

To begin, go to List Settings > Advanced Settings Select Yes on Allow management of content types Click on one of the existing content types under the Content Type section Next, click on the column you intend to hide, and choose the option Hidden. Click OK Go to the New Item tab and select the Edit form. You will see that, on both the New Item and Edit ...


19

Glyn Clough has a nice solution for exporting xsltlistviewwebpart Update 2014-09-19 I have found another way to easily export any web part from a SharePoint page, without needing to update web part properties: Export any web part from a SharePoint page Here is the most important text from the blog post: In SharePoint there is a hidden application page ...


12

Option 1. How to remove row in List View The following example demonstrates how to delete rows via client side rendering (function () { function listPreRender(renderCtx) { var excludeRows = [0,2,3]; //row idexes to be excluded var rows = renderCtx.ListData.Row; //get current rows for(var i = excludeRows.length - 1; i >...


12

I have tested it out and was able to do it using CSR and JS Link. Save the below code to say:projectCode.js and upload it to site assets and then refer it in the JS Link of the list view : (function () { var overrideCurrentContext = {}; overrideCurrentContext.Templates = {}; overrideCurrentContext.Templates.Fields = { 'ProjectCode': { 'View': ...


11

To increase the width of a particular column in the List View Web Part Add a Content Editor Web Part in your page Add the below css text in it and save. <style type='text/css'> .ms-vh-div[DisplayName='<ColumnName>'] { width:250px; } </style> You can get the <ColumnName> from the source of the table. [F12]


11

There are two types of views - Public and Private. Public View: To create Public Views there doesn’t appear to be an actual limit. What was limited in previous version of SharePoint 2010 is the number of views shown in the drop-down list of views. The limit was 50. You can have more than 50 views but to navigate to view 51 you should be knowing the URL. And ...


10

Hiding these links from that many locations actually causes a lot of pain and anyway is not secure. An advanced user could just enter the direct link to the view creation page, and all your efforts would be to no purpose. Thus, this is a permissions question, and all you need is just to set appropriate permissions to your portal users. To achieve this, ...


10

You can't hide a view from some users and not others, but there is a way to hide a view from everyone, and then you can let your team know that, though hidden, the view still exists. From the list settings page, choose "Per-location view settings", then select the views you want to hide and click "Remove". Those views will no longer show up in the view ...


9

You can do it using CSR as well as using javascript. Here i'm giving simple and easy javascript solution. Working Javascript solution: <script type="text/javascript" src="https://code.jquery.com/jquery-1.12.0.min.js"></script> <script type="text/javascript"> $(document).ready(function () { $("table[summary='YourListTitle'] td:nth-...


8

Have you taken a look at the business data catalog (BDC) on moss 2007? The BDC (renamed Business Connectivity Services in SP2010) is an out of box feature enabling external business data (in your case a list of offices) to be surfaced within SharePoint site collections without writing any code. It may not be the perfect fit for your requirements, since if ...


8

The webpart item limit only affects the front end display (pagination)- so a request for all the items is still sent to the database. I suggest you create numbers of views to display the data. When creating the views, you can set the Filter to limit the items shown in each view to 5,000: Click Show items only when the following is true. For the first view, ...


8

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: $view.ViewFields.Add($hereGoesFieldName); And update view: $view.Update();


8

Since SharePoint 2013 supports several sets of APIs, you could utilize client APIs (CSOM/REST) in PowerShell. How to set View.JSlink property using PowerShell in SharePoint Online CSOM version The following example demonstrates how to specify View.JSlink property via CSOM in PowerShell: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft....


8

You can try CSR concept. It will be applied to the List View Web Part, so you need to following script in all the places where you are using List View Web Part (if you are) otherwise, just follow the below steps. Open the List All Items view or the desired view. Now click on gear icon and select Edit Page. Now the page will be on edit mode, so you can ...


7

I had a similar item come across my dest a few days ago. Using javascript and jquery. The code replaces the html coding of a semicolon with a html line break. It then copies the code and replaces the orginal code with it. $(document).ready(function(){ $(".ms-vb:contains(';')").each(function(){ var htmlstr = $(this).html(); var htmlmod = htmlstr....


7

You can filter list by using CAML and DaysOffset attribute of the Today tag. This can be done even from GUI. For example, this filter will narrow the shown items of a list view to those, which have Due date within a week from the current date: (List Tools => List => Modify view on the contextual ribbon) In terms of CAML, this will produce the following ...


7

Yes, you can create custom views through browser with out using SharePoint Designer. Please follow below steps. Select any Survey list-->Survey Settings http://********/InvIncidentReporting/_layouts/survedit.aspx?List=%7BBF870743%2D9654%2D4E19%2DB4B1%2D35527D4BE942%7D Edit URL with viewtype in place of Survedit http://********/InvIncidentReporting/...


7

Perhaps it is wiser to create a view with a filter such as "[Created by] = [Me]"? I find it really hard to believe that each user requires a unique view....


7

There is no way OOTB using the UI. So you have to do it manually in the UI or through code (could be PowerShell). If you create the column in the UI and deselect 'Add to Default View' and then run the following in 'SharePoint 2010 Management Shell': $web = Get-SPWeb "http://sharepoint" $list = $web.GetList("http://sharepoint/Lists/MyList") $field = $list....


7

You can specify Location="CommandUI.Ribbon.ListView" and RegistrationType="ContentType" with ID set to 0x01 for custom button to appear on ListView pages of all the lists. <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="ShowHelloWorldButton" RegistrationType="...


7

You can use CAML queries. These queries are executed in the server and will retrieve only the items requested for. Use Pagination to iterate through the items. For that you can use ListItemCollectionPosition Here is a snippet you are use for this ClientContext clientContext = new ClientContext("weburl"); List list = clientContext.Web.Lists.GetByTitle("...


7

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 variable in the order you wish to see them on your page. You need to edit the webpart properties and add a link to this JSLink file for each view page if you want the ...


7

Please try to use CSR. Step 1: Create a JS file and paste below code. (function () { function registerRenderer() { var ctxForm = {}; ctxForm.Templates = {}; ctxForm.Templates = { Fields : { 'LinkTitle': { //------ Change Hyperlink of LinkTitle View : function (ctx) { ...


6

You can add these options to Field xml - LinkToItem="TRUE" LinkToItemAllowed="Required" ListItemMenu="TRUE" to display Item Context Menu. So it looks like: <Field Type="Text" ID="{87AC637E-BB54-48A4-BB7A-93973F6814A1}" StaticName="Country" LinkToItem="TRUE" LinkToItemAllowed="Required" ListItemMenu="TRUE" ClassInfo="Menu" AuthoringInfo="$...


6

PROBLEM SOLVED :-) :-) The bug of trying to set the xsllink property through the template seems to be a recognised bug. I'm even sure MS are aware of this as when looking at how they have created their site definitions it seems pretty uninstinctive. The Solution DO NOT SET OR DEFINE THE XSLTLISTVIEWWEBPART IN THE TEMPLATE instead just define a webpart ...


6

It is possible to accomplish with OOTB Metadata Navigation and Filtering Feature using Navigation hierarchies control. Navigation hierarchies control allows to select an item in a hierarchy for a managed metadata column with filter for single Term Term with descendant child terms Applying filter in Navigation hierarchies control corresponds to ...


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