List View Web part not showing all available views for list

We have added a list view web part to a page, and we get the "Current View" link in the web part...which is configurable when modifying the actual web part.
What we'd like to see (instead of having to click the ellipses button/context menu to get the other views) is the views displayed horizontally like when you are viewing the list itself.
When viewing the list itself, we see "All Items" "View 1" "View 2", etc.
Is this possible in the list view web part to display all available views in a horizontal/breadcrumb layout?  Please advise.

The below works via alert, just need to now assign data to a <DIV> or element for display.
Trying this in simple webpart code snippet to get back all views:
    <script>
    var viewCollection = null;
        function runCode() {
            var clientContext = new SP.ClientContext.get_current();
            if (clientContext != undefined && clientContext != null) {
                var web = clientContext.get_web();
                var listCollection = web.get_lists();
                var list = listCollection.getByTitle("MyListName");
                this.viewCollection = list.get_views();
                //var viewInfo = new SP.ViewCreationInformation();
                //viewInfo.set_title('MyView');
                //this.viewCollection.add(viewInfo);
                clientContext.load(this.viewCollection);
                clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
        function onQuerySucceeded() {
            var viewInfo = 'Tasks list current views: \n\n';
            var viewEnumerator = this.viewCollection.getEnumerator();
            while (viewEnumerator.moveNext()) {
                var view = viewEnumerator.get_current();
                viewInfo += view.get_title() + '\n';
            alert(viewInfo);
        function onQueryFailed(sender, args) {
            alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>
    <a onclick='return runCode();'>Click here</a>
                        

Similar Messages

  • SharePoint 2010 List View Web Part not showing for read-only users?

    Hello all,
    I have List View Webparts on my Blank Web Part page, and it's not showing for Read-Only users.
    Is this intended by Microsoft or is it a bug?
    Thank you!

    Hi,
    According to your post, my understanding is that the read only user could not see the list view web part.
    Per my knowledge, the issue may be cause that the user do not have the proper permission for the list.
    1. Check whether the user can access the list.
    2. Check whether the user can view all the items instead of partial items in the list.
    3. Check whether there are some fields refer to other lists or terms, especially the lookup field or managed metadata filed.
         If that is the case, make sure the user can access the lookup list.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Items to display in list view web part not showing the items setup

    Hi, I have the following issue. I have a list view web part, but the web part is showing more items that the ones setup in the: Number of items to display in list view web part for this view.
    It is because that works when using datasheet view and not a normal view? Is there any technical documentation from Microsoft supporting this?

    thank you for your answer. It is interesting that the mobile view with the items to show in the mobile view doesn't work in the webpart, but it works when you are using datasheet view, but if you uncheck to activate the mobile view, then, the webpart doesn't
    show information, so, it works partially because one part works and not the other.

  • SharePoint 2010 list view web part not showing conditional formatting

    when I create conditional formatting in custom list is working fine & when it call through web part page (Data view web part) conditional formatting not showing. data is showing without conditional formatting.
    Dinuka M.

    When you use conditional formatting on some page it is writing inline CSS codes inside that page. thats why when you create a new page and add the same web part to that page, you must edit that page to apply conditional formatting to that
    web part.
    Best Regards, Mustafa Yılmaz MCITP, MCPD | www.mustafa-yilmaz.org | www.sharepointciyiz.biz
    When you say edit the page, do you mean edit it in SharePoint Designer, or in SharePoint itself. And is it a case of just editing, then saving the page and it will apply the conditional formatting, or is there a specific property you need to edit, and if so,
    what is it?

  • Cannot create mysites from powershell: Original XSLT List View Web Part not found

    I have a bizarre problem in my SharePoint 2013 farm. This does not occur in my test farm, only in the farm we were going to go live with.
    I'm on windows Server 2012, SQLServer 2012 SP1, SharePoint 2013 April CU. 1 appserver/centraladmin server, 2 web servers.
    When I log into our mysitehost and click newsfeed, it will create a mysite (even though first it displays "we are sorry there was a problem creating your site")
    But from powershell, whether I use $UserProfile.CreatePersonalSite() or New-SPSite, I get the following error:
    Original XSLT List View Web Part not found
    So far I've only found one other person with this:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2503e42c-e114-4e89-8e00-89fe70f0b154/cannot-create-sharepoint-mysite-programmatically
    This is a brand new farm, created with the same scripts I created my test farm with, and same version of SharePoint. Only the service accounts are different. (Farm account has admin on the servers right now since I was setting up profile service).
    Some other errors from the same correlation ID that look related:
    It can't seem to find the listemplate 101
    And something looks wrong with the MySiteDocumentLibrary feature
    I have tried the following:
    1. run psconfig.exe on each server
    2. install-spfeature -AllExistingFeatures
    3. looped through the directory under Features and for each called Install-SPFeature $dirname -Force
    4. uninstalled and reinstalled MySiteDocumentLibrary feature
    5. blew away the whole farm (removed all servers from farm, deleted all databases) and recreated it.
    6. tried creating the UPA from the CentralAdmin gui.
    The only real difference I can think of between the working farm and non working farm is, I installed the working farm using RTM, then as they came out added the March PU and April CU. For this farm I installed RTM and March and April, and then ran my build
    farm script.
    I am at a loss. What do I need to do, re-install the binaries? That's all I can think of. What I love is that our test / POC system worked fine, and now 2 weeks before go-live I'm seeing errors on the production servers I've never seen before. Using the
    same scripts no less.
    Feature Activation: Feature 'Fields' (ID: 'ca7bd552-10b1-4563-85b9-5ed1d39c962a') was activated
    Feature Activation: Feature 'CTypes' (ID: '695b6570-a48b-4a8e-8ea5-26ea7fc1d162') was activated
    No document templates uploaded for list "$Resources:core,global_onet_solutiongallery_list;" -- none found for list template "100"
    Failed to find <ListTemplate> tag corresponding to ID "101", tried both onet.xml for site definition ID "0" language "1033" and global site definition. Operation failed.
    No document templates uploaded for list "$Resources:core,stylelibraryList;" -- none found for list template "121".
    System.Runtime.InteropServices.COMException: A user may not remove his or her own account from a site collection.<nativehr>0x81020051</nativehr><nativestack></nativestack>, StackTrace: at Microsoft.SharePoint.SPUserCollection.UpdateMembers
    Feature Activation: Feature 'MySitePersonalSite' (ID: 'f661430e-c155-438e-a7c6-c68648f1b119') was activated
    Feature Activation: Activating Feature 'MySiteDocumentLibrary'
    Calling 'FeatureActivated' method of SPFeatureReceiver for Feature 'MySiteDocumentLibrary'
    SharePoint Foundation Upgrade MySiteDocumentLibraryFeatureReceiveraj08n INFO Creating new My Documents library
    Unknown SPRequest error occurred. More information: 0x80070002
    SPRequest.GetMetadataForUrl: UserPrincipalName=, AppPrincipalName= ,bstrUrl=http://contoso/personal/cbuchholz/DOCUMENTS ,METADATAFLAGS=59
    System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>, StackTrace: at Microsoft.SharePoint.SPWeb.GetObjectForUrl at Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryUtil.GetSPObjectFromUrl ...
    <nativehr>0x80070002</nativehr><nativestack></nativestack>There is no Web named "/personal/cbuchholz/DOCUMENTS"
    Possible mismatch between the reported error with code = 0x81070504 and message: "There is no Web named "/personal/cbuchholz/DOCUMENTS"." and the returned error with code 0x80070002.
    Attemping to add webpart id 0F6072F2-E804-4CFD-837E-BB37332B9D1C to web http://contoso/personal/cbuchholz
    Adding XsltListViewWebPart calling SPRequest::CreateListViewPart. Web part id 0F6072F2-E804-4CFD-837E-BB37332B9D1C, web http://contoso/personal/cbuchholz
    Feature receiver assembly 'Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c', class 'Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryFeatureReceiver', method 'FeatureActivated' for feature 'e9c0ff81-d821-4771-8b4c-246aa7e5e9eb' threw an exception: System.InvalidOperationException: Original XSLT List View Web Part not found at Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryUtil.ReplaceListViewWebPart
    Feature Activation: Threw an exception, attempting to roll back. Feature 'MySiteDocumentLibrary'
    Exception in EnsureFeaturesActivatedAtSite: System.InvalidOperationException: Original XSLT List View Web Part not found
    Failed to activate site-collection-scoped features for template 'SPSPERS#2' in site collection 'http://contoso/personal/cbuchholz'
    Failed to apply template "SPSPERS#2" to web at URL "http://contoso/personal/cbuchholz
    I've had other problems in this farm: the bug where when you add Administrators to a Search Service via the Manage Service Applications page, it removes the SPSearchDBAdmin role from the search service process account. That one did not happen in the other farm.
    At least other people have that one and I could just use the farm admin instead (still troublng of course).

    Ok,
    Here is the problem:
    When creating a mysite from powershell or script, apparently you can ONLY do this from a wfe (or a server running Microsoft SharePoint Foundation Web Application in services on server).
    You CANNOT create mysites from script on your appserver if it is not also a Web Application Server. I confirmed the same is true in my test farm. I guess I was always running most of these scripts on the webserver.
    I searched all over and cannot find this documented anywhere.
    Who do I contact to have Microsoft document this?
    It's Thursday morning, I've been working non stop since Saturday morning so you don't have to :)

  • SQL Report Viewer Web Part Not displaying Report

    I have just completed updating an old report using report builder 3.0. I have added it to SharePoint Designer but have not replaced the old report file. 
    Any help is greatly appreciated!!
    All I did was export the old report from sharepoint designer to my desktop. Then opened it with Report Builder 3.0- made changes to the report and saved it with a different name (for safety in case i break things) and then upload it back to the same place where
    the old report was located using SP Designer. I then went back to the site in sharepoint that is displaying the old report, and changed the URL path in the SQL report viewer to the new report. 
    Now the SQL Report Viewer web part isn't showing anything (blank)

    Dear Form Moderator,
    This question is already asked in sharepoint forum so please don't move this sharepoint forum. Here is link of thread:
    https://social.technet.microsoft.com/Forums/en-US/3796da85-fbb4-4722-a5d0-724859f7d4ae/sql-report-viewer-web-part-not-displaying-report?forum=sharepointgeneralprevious
    Here is the one more duplicate thread link in same forum. So either you can merge both OR delete one.
    https://social.technet.microsoft.com/Forums/en-US/259d2586-ed4a-4f47-a808-877d4621d9f2/report-builder-30-sql-report-viewer-web-part-not-displaying-report-in-sharepoint?forum=sqlreportingservices
    [SharePoint Forum Moderator]
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • List view web part not reflecting changes made to list view in SharePoint Designer

    Dear All,
    When adding a list view web part containing a view modified in SharePoint designer (e.g. conditional formatting applied, or group headers modified) I'm finding that the changes made in SPD are not reflected in the web part. 
    For example, I go into SPD edit a view, and the view appears correctly when I go back into SharePoint, however when I link to the view within a list view web part it results in losing the changes made in SPD. 
    Becasue it's a publishing page I'm unable to edit the contents of the web part in SPD.
    I'm sure this is expected behavior but how do I get around this?
    Thnaks,
    MDB

    Try below
    http://stackoverflow.com/questions/19533998/sharepoint-designer-doesnt-show-anything-in-list-and-libraries-link
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/a63a1894-6b1d-420a-95dd-b6c546eab34d/updates-made-to-sharepoint-designer-2010-workflow-do-not-show-up-on-the-server?forum=sharepointcustomizationprevious
    http://stackoverflow.com/questions/5959521/sharepoint-designer-saves-the-changes-but-it-does-not-affect
    http://social.technet.microsoft.com/Forums/en-US/1e9a8c27-bbc5-4a6f-8daf-4b243182f543/changes-in-sharepoint-designer-2010-not-showing-in-sharepoint-server-2010-page?forum=sharepointadminprevious

  • Drop Down In List From Lookup Does Not show all items in mobile view

    I have list called "incident".
    I have a list called "locations"
    The "incident" list looks up a value from the "location" list as a dropdown.
    The location list contains 25 building names.
    When I try to fill out the "incident" list in mobile view
    the "location" drop down only shows 16 items. I checked the "locations" mobile view limit and set it to 99 to make sure all would show up.
    The desktop view for the "incident" list shows all 25 buildings from the "locations" list.
    Any advice on how to get those extra 7 locations to show up?
    Jef

    Still don't have an answer. I'm now looking to use a radio button or something to use as a work-around. If I use a lookup and tell it to allow multiple selections (shows as checkbox) it does not show all values in the mobile view.
    If I input each item and choose choice, it only shows up as dropdown. I need radio buttons. If I choose lookup and allow multiple selections, it does not show all the options.
    I need some help on this.
    Jef

  • ECT List View Web Part displaying incorrect data when View Item

    I have a External Content Type which pulls data from a stored procedure. The stored procedure has 1 parameter - the users logon id. The data retrieved is a list of meetings with start date time, end date time, location, subject, etc. From this ECT there
    is an External List which displays all data correctly.
    There is 2 pages within the site and its subsites that have list view web parts which display a subset of the info from the external list. When the user clicks a specific meeting to display the complete info on the meeting, the wrong information is displayed,
    it always displays the info for the 1st meeting in the list. So, I displayed the BDC Identity field on the list and this field is identical for all the rows since the key for the ECT is the username and hence not unique.
    I've spent all day trying to finding a way to resolve this and have come up empty. I've tried to find a way to make the BDC Identity field to be unique, using Business Data View web part, Data View web part, and nothing.
    The user needs to be able to click the My Meetings url header on the above pages to see a full list of their meetings so I need the external list. Any ideas how to make the BDC Identity field unique or how to get the View Item on the List View web part to
    work correctly?

    Sorry, I do not understand what you mean.
    I resolved the non unique BDC Identity problem by simply adding the row # to the Username in the stored procedure so the BDC Identity fields on the list records are now unique (although they're really long ie. __bk44003500070057003700560027000200140037003700f600360096001600470056003300,
    __bk44003500070057003700560027000200140037003700f600360096001600470056004300 etc). Not sure how it generates the BDC Identity?
    I still see the same behaviour when you select a meeting to display the details. It always displays the 1st record in the list.
    I added code to the DispForm to display the ID when the page loads and the BDC Identity from the record and verfied that they do match.
    I can add another parameter to the stored procedure and just return the row # in that field. What do you mean by make the identifire as Identity in operations?

  • XSLT List View Web part with Inline Editing changing value for one field changes the other lookup field

    Hi
    It's a bit of a weird one. In an XSLT List View web part when Inline editing is enabled if I change the date column, it changes the lookup field column as well. This behavior only occurs if the lookup list has more than 20 entries. Below 20 and we are
    OK.
    Let me explain by example:
    MileStones List - Having more than 20 items
    Tasks List - having a lookup to the Title field from MileStones list. Also having a due date field.
    Simple web part page with one XSLT List View web part for Tasks having inline editing enabled.
    When I edit the first record's due date and press enter (which saves the changes and moves onto next record) and change the due date on second record without even touching the MileStone field. Press enter to commit changes and you see the milestone changing
    on first record!
    The wierd thing is that if the MileStone list has less than 20 items all works as expected.
    Any pointers will be appreciated
    Thanks

    Hi,
    This is a known limitation when working with complex fields like Lookup field.
    A workaround is that we can avoid using the inline edit feature when there are
    complex fields in a list.
    You can take a look at this KB from Microsoft Support to get more details:
    http://support.microsoft.com/kb/2600186/en-us
    A similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3d369611-ee79-4b5c-86bb-c0f3878cd746/standard-list-view-with-inline-editing-lookup-column-copies-preceding-or-following-items-related?forum=sharepointgeneralprevious
    Thanks
    Patrick Liang
    TechNet Community Support

  • List Filter Web Part not Working

    Hi. I'm implementing a SharePoint Server 2013 Enterprise Farm on a new Customer. I've created the desired site structure. When trying to use the List Filter web part, i can configure, connect sucessfully to another webpart and even filter.
    The problem is that the Webpage Dialog with the filters, the radio buttons show up but no description is associated to them. Regardless if i configure the description in the web part properties. I even gone further, and tried do create a choice filter,
    with the same behavior.
    Any help would be appreciated.
    Thank you,
    Tiago Costa   

    Hi,
    According to your post, my understanding is that you have an issue about the list filter web part.
    Per my knowledge, the description column is used to display an alternative value in the Select Filter Value(s) dialog box, which displays when a user clicks the Filter button.
    For example, if you have a Month number column that uses the numbers 1 though 12 as month values, you can use a Month Name column as the Description column so that January is displayed instead of 1, February instead of 2, and so on.
    http://office.microsoft.com/en-in/sharepoint-server-help/connect-a-filter-web-part-to-a-list-view-web-part-HA010250989.aspx
    I tried to reproduce the issue in my environment, however, when I chose the
    Created column for Description field, when I clicked the filter button, the created time displayed.
    Did the issue occur in other pages? You can recreated a new page, then check whether it works.
    You can also use other browsers to check whether it works.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • SMB share not showing all available files

    Hi,
    At work I have to connect to several SMB shares. Most are fine, however 1 of them does not show all the files that are on that share. I know I'm using the right domain, username and password. I've checked the console and can see this message repeated when I connect.
    mbgetmem(449): incomplete copy
    mbgetmem(449): incomplete copy
    mbgetmem(449): incomplete copy
    mbgetmem(449): incomplete copy
    I'm using OS X 10.4.8 and have no idea of how to proceed. My IT department do not support our Mac's so any help would be greatly appreciated.
    Many Thanks
    Kieran

    excellent reply. Thanks for the details.
    Oh, one more thing-
    this 30-item limit is just in this same troublesome share.
    Before the day gets away from you, ask the network admin to check permissions on this share. Perhaps the 30 files you see are the only ones that you have explicit rights to view.
    they may need to ease up on restrictive permissions on this folder/drive.
    (Images over a network can be funky, since Mac wants to display a little thumbnail of all those picture files...if you're viewing 'as icons', what happens if you change to 'by list'?...thinking out loud there.)
    (not sure if I posted this...lost an open window for a few minutes :o

  • RSS Viewer Web part not working after installing kb2767793

    Hi,
    I just patched our sharepoint farm with kb2767793 - after installing this CU the RSS Web part is no longer loading as expected on our pages, it just keeps trying to load forever.
    If I choose to edit the page the RSS feed loads with no issues when in edit mode. When going back to published view I experience the same issue.
    The symptom is only present if the page contains more web parts eg Content Query Web part. If I create a page with only the RSS viewer web part it functions as expected.
    Has anyone experienced this or has any suggestions? 
    Thanks,
    Luke

    We have the same issue after installing the April security updates.
    I opened a support case with Microsoft and they proposed these using one of these solutions (see below).
    Unfortunately these did not work for us.
    Summary
     Page Level: add a CEWP to the page and add the following custom script to it:
    Save the following JavaScript to a .txt file and upload the file to any document library in the root of the site. 
    <Script Type="text/javascript"> 
    function CustomUpdateFormDigest() 
    if(window._spPageContextInfo != null) 
    var $v_2 = window._spPageContextInfo; 
    var $v_3 = $v_2.webServerRelativeUrl; 
    var $v_4 = window._spFormDigestRefreshInterval; 
    UpdateFormDigest($v_3, $v_4); 
    CustomUpdateFormDigest(); 
    </Script>
    Adding the above script to the Master Page
    3)     Web Application Level:
    Turn off Security Validation for the pages from Central Admin -> Web Application -> General Settings.
    Gncntry

  • Page Viewer Web Part Not Displaying

    I've added a Page Viewer to my SharePoint site underneath a Content Editor. When I'm editing the Page Viewer Web Part I can see the page but if I close the Web Part editor the page doesn't display.
    If I move the Page Viewer Web Part above the Content Editor it displays but the Content Editor does not.
    Anyone have any ideas?

    Do you have HTML or a script written in your Content editor? maybe the code isn't properly formatted with proper opening of elements or closing of elements? I'd start there. Also try using the F12 in your IE browser to inspect the HTML the page is displaying.
    That might help zero in on the problem.
    Alex

  • Summary Links web part not showing correct column number

    Here is my scenario. I have a simple two server dev farm that is using a snapshot of production data. I have migrated the 2010 content db over and everything is running fine. One quirk I have noticed is with the summary links web part. If I add the webpart
    to a page, in the configuration settings for the webpart you can create named groups and the next setting is how many columns you want the links to appear in. When I select lets say "4" columns, and I create four groups. When I save and check in
    the web part only shows "3" columns instead of 4. 
    For Example. 
    I create groups: Group 1
                              Group 2
                              Group3 
                              Group 4
    In the webpart configuration I select "display number of columns" = 4
    When I save that setting and look at the web part the groups will appear as:
     Group 1             Group 2                    Group 3
    Group 4
    when in reality if the column setting is = 4, I would expect: 
    Group 1      Group 2      Group 3      Group 4
    So it appears it is behaving as if whatever column number you select, what is displayed is N-1. 
    Has anyone else had this happen in SharePoint 2013? The same webpart doesn't behave this way in the 2010 production environment where dev gets its content. Any help would be great. 
    Thanks,

    Hi againeyuga,
    Yes, I have tested in my SharePoint Server 2013 with December 2013 CU  and it  works fine. For your environment, I recommend  you install the SP1 update.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

Maybe you are looking for

  • Blocked account - How to resolve?

    Hi i'm having a problem with my skype credit. I had approx £9 on it. About a week ago i got a msg saying it was autorecharged and that this was then refunded despite the fact that I have not set up auto recharge. I tried using my account this morning

  • Servicegen doesn't support inheritance?

    I have a method in a ejb class which returns class Product. The Product itself inherits class ProductBase. The ejb itself works ok. I then wrap the ejb with webservices, using servicegen to generate serialization class, and clientgen to generate clie

  • HCM UseCase

    Hi all, i implemented the "HCM UseCase" from the Configuration Guide. I got the HCM data into the VDS. But i don´t know how to get data from VDS into IS. I already imported the HCM_Staging_Area into IC. Can someone help me? Best regards, Philip

  • How to "migrate" a 10.5 Server-System from a G4 to a G5?

    Hi all, I tried to bring an existing Leopard-Server System from a G4 MDD 1.25GHz to a G5 Dual 2.5GHz Mac by making a TimeMachine Backup on G4 and bring it back as a Restored System to my G5 - it didn't work that way... (the G5 did only start with the

  • DAM question: assets in multilanguage

    Hello. I've a question related to a recent RFI we've received from a client. This client is evaluating DAM, and the main issue we've to solve is how to manage digital assets in different languages (as images can contain texts, and videos can contain