How to add a list views web part to a page?

Hello,
I have web parts on a page that are "List Views".  The show links as menu from a custom list of links on a page.  However, I don't know how the developer added them to page and how they work.  I like to add other list views
that list links from lists.
Paul

Hi,
Your query is to configure a webpart in a page which will display all the links to lists (within the site)? If this is the requirement you can configure a dataformwebpart and configure the Data
Source Mode as CrossList.
Let me know if you have any further questions.
Thanks!

Similar Messages

  • Updating List View Web Part property in page

    I have a List View web part (In the page > Add web part > App > document library name). I need to update the TitleUrl property of this web part through C# code.
    The SaveChanges() method below works for my visual web parts, but not for the List view webpart. I get an error saying: Exception has been thrown by the target of an invocation
    webpartManager = myPage.GetLimitedWebPartManager(System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared);webPart.TitleUrl = titleURL;webpartManager.SaveChanges(webPart);
    I did a casting as below
    XsltListViewWebPart listViewWebPart = (XsltListViewWebPart)webPart;listViewWebPart.TitleUrl = titleURL;webpartManager.SaveChanges(listViewWebPart);
    (Please note that casting to ListViewWebpart instead of the XsltListViewWebpart gives a invalid cast exception, which is the reason why I cast it to XsltListViewWebpart) 
    But I get the error at SaveChanges() method.
    An exception of type 'System.Reflection.TargetInvocationException' occurred in Microsoft.SharePoint.dll but was not handled in user code
    The error description is as below
    >    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[]
    > arguments, Signature sig, Boolean constructor)    at
    > System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,
    > Object[] parameters, Object[] arguments)    at
    > System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
    > invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  
    > at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[]
    > index)    at
    > Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.DoesPersonalizedPropertValueMatchDefaultValue(SPPersonalizablePropertyEntry
    > spPersonalizablePropertyEntry, Object value, Control defaultControl)  
    > at
    > Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.Serialize(PersonalizationScope
    > scope, BinaryWebPartSerializerFlag binaryWebPartSerializerFlags,
    > BinaryWebPartSerializerWriter writer)    at
    > Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.Serialize(SerializationMode
    > mode, BinaryWebPartSerializerFlag binaryWebPartSerializerFlags,
    > SPSerializationBinderBase serializationBinder,
    > BinaryWebPartSerializerWriter writer)    at
    > Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.Serialize(SerializationMode
    > mode, BinaryWebPartSerializerFlag binaryWebPartSerializerFlags,
    > SPSerializationBinderBase serializationBinder)    at
    > Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChangesCore(SPLayoutProperties
    > layoutProperties, Boolean httpGet, Boolean saveCompressed, Boolean
    > skipRightsCheck, Boolean skipSafeAgainstScriptCheck, WebPartTypeInfo&
    > newTypeId, Byte[]& newAllUsersProperties, Byte[]&
    > newPerUserProperties, String[]& newLinks)    at
    > Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChangesInternal(SPLayoutProperties
    > layoutProperties, Boolean skipRightsCheck, Boolean
    > skipSafeAgainstScriptCheck)    at
    > Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChanges(Guid
    > storageKey)    at
    > Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.SaveChanges(WebPart
    > webPart)    at
    > WSP.ABC.ABC.ABCWindow.<>c__DisplayClass5.<ChangeWebPartProperties>b__4()
    > at
    > Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
    > at
    > Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated
    > secureCode)
    Tried casting back as below
    webpartManager.SaveChanges((System.Web.UI.WebControls.WebParts.WebPart)listViewWebPart)
    but still the error at SaveChange() is there.
    AllowUnsafeUpdates is set to true within this block and code runs in elevated privileges.

    Hi Ahamed,
    According to your description, there is an issue when you try to update the TitleUrl property of a List View Web Part.
    For a better troubleshooting, I suggest you do as the followings:
    1. Debug your code step by step and make sure every object and variable is valid.
    2. Here is a code snippet about update web part property programmatically:
    SPWeb web = SPContext.Current.Web;
    SPFile file = web.GetFile(HttpContext.Current.Request.Url.ToString());
    SPLimitedWebPartManager manager = file.GetLimitedWebPartManager(PersonalizationScope.User);
    System.Web.UI.WebControls.WebParts.WebPart webPart = manager.WebParts[this.ID];
    ((UpdateMeWebPart)webPart).Message = “Test”;
    try
    web.AllowUnsafeUpdates = true;
    manager.SaveChanges(webPart);
    finally
    web.AllowUnsafeUpdates = false;
    Here is a detailed article for your reference:
    http://jeremyknight.wordpress.com/2010/11/12/programmatically-update-web-part-properties/
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • How to add the Note board web part to a page with powershell

    Hi everyone,
    I've been looking around everywhere but haven't seen it explicitly mentioned. 
    Does anyone know how to add the Note Board web part to a Team Site page, e.g. Non-publishing site, Left Zone, First webpart in the zone in powershell?
    Examples like this one http://adicodes.com/adding-web-part-to-page-with-powershell/ only talk about custom web parts uploaded from a local drive.
    The example here looks good - http://spcrew.com/blogs/lists/posts/post.aspx?id=21 but is it for the Page Viewer Web Part. How would you go about getting the correct name for the note board web part and configuring it? 
    Many Thanks,
    Ashley
    function main(){
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    $url = "http://sp2010dev1/sites/test1"
    $OpenWeb = Get-SPWeb $url
    $OpenWeb
    $OpenSite = Get-SPSite $url
    $file = $OpenWeb.GetFile("http://sp2010dev1/sites/test1/SitePages/test1.aspx")
    $WebPartManager = $file.GetLimitedWebPartManager([System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
    Add-PageViewerWebPart "http://sp2010dev1/sites/test1" "http://sp2010dev1/sites/test1/SitePages/test1.aspx" "Body" 0 "SPCrew Site" "sp2010dev"
    $OpenWeb.Dispose()
    function Add-PageViewerWebPart($SiteURL, $pageUrl, $webpartzone, $index, $title, $content)
        $site = new-object Microsoft.SharePoint.SPSite($SiteURL)
        $web=$site.OpenWeb()
        $webpartmanager=$web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
        $webpart = new-object Microsoft.SharePoint.WebPartPages.PageViewerWebPart
        $webpart.ChromeType = [System.Web.UI.WebControls.WebParts.PartChromeType]::TitleOnly;
        $webpart.Title = $title
        $webpart.ContentLink = "http://www.spcrew.com";
        $webpartmanager.AddWebPart($webpart, $webpartzone, $index);    
        $web.Close()
        $site.Close()
    function Get-SPSite([string]$url) {
        New-Object Microsoft.SharePoint.SPSite($url)
    function Get-SPWeb([string]$url) {
        $SPSite = Get-SPSite $url
        return $SPSite.OpenWeb()
        $SPSite.Dispose()

    Hi,
    According to your post, my understanding is that you wanted to add the Note board web part to a page with PowerShell.
    The name of the Note Board web part is SocialCommentWebPart.
    I recommend to use the powershell code below:
    $pageUrl="http://sitename/SitePages/test.aspx"
    $SiteURL="http://sitename"
    $site = new-object Microsoft.SharePoint.SPSite($SiteURL)
    $web=$site.OpenWeb()
    $webpartmanager=$web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
    $webpart = new-object Microsoft.SharePoint.Portal.WebControls.SocialCommentWebPart
    $webpart.title="Note Board"
    $webpartmanager.AddWebPart($webpart, "MiddleZone", 0);
    $web.Close()
    Then the Note board web part will be added to the page.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • External List: List View Web Part query never returns

    I am experiencing an usual issue in our development SharePoint 2013 environment. I have been troubleshooting it for a couple hours, so thought it is time to post a message here.
    I have created a number of external content types and lists on our site. I have validated that the lists display the expected data.
    However, when I add a page to our site, and add a list view web part to the page, and point the list view web part at the external list, I get unexpected behavior.  While I am editing the page, the web part displays the expected data. However, after
    I publish the page, when you browse to the page, all you get is the rotating green arrow gif image, and no data. It displays the image forever. If you then attempt to edit the page, in the editor, you can then see the expected data.
    Any thoughts on what might be causing this issue? I have tried switching out web parts, both to the Business Data List and the Content Query web part. The Content Query web part throws an exception if you attempt to point it at any of the external lists,
    which after some reading I discovered that this is a known issue with that web part.
    The Business Data list web part shows the expected data, but I have been unable to get paging/grouping working with that web part yet.
    Greg Pierson

    I have recreated this issue on a clean site collection. I have also discovered this issue only occurs with publishing pages, not site pages. next step is to try to reproduce it on another share point 2013 install.
    Greg Pierson

  • Different query for same view showing on different page as list view web part

    Hi all,
    If you have three pages and want to add Documents library as list view web part to these three pages with different query (Programmatically), Do you need to create three different views for Documents library or it is possible to have different query when
    I add the list view web part to the page?
    thanks and appreciate all kind of advice.

    When you add a List View Web Part to a page, SharePoint actually copies the selected view query into the Web Part itself. For example:
    You create a custom view on a list called "Mede71's View" and you configure it only show the Title column
    You add a List View Web Part to a page and update the settings to use the "Mede71's View"
    You go back to your list and change "Mede71's View" and add the "Modified Date" column
    Your List View Web Part will not reflect this change because in step 2 the Query from the view was copied into the List View Web Part
    When you programmatically add the List View Web Part, you can either assign it to an existing view or supply the query directly. If you want to instruct users to be able to add their own web parts pointing to those views in the future, I would recommend
    creating the views first.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Have JQuery for List View web part, But Full Text Not Visible

    I have a list view web part on a page with which, I've edited the view the way I need which includes grouping.
    Inside IE's Developer tools, I can see the structure (TD and then an anchor tag linking to document) and see the class SharePoint uses for that TD. BUT - when I view the source for the page, none of the actual text in the created view shows up at all!
    What I need to do is to wrap the text inside that TD with more html tags, along with adding a left padding. Adding the padding to the CSS file actually works fine.
    The problem is, that when I add the JQuery to wrap everything in the TD the way I need it, since it technically hasn't been rendered yet, even with a document ready function around it, the JQuery never does what it is supposed to do.
    here's the JQuery:
    $('td.ms-vb').each(function() {
    $(this).find( 'a' ).wrap(
    $('<ul style="padding:0px;margin:0px;;">
    <li style="list-style-type:disc;color:white"></li></ul>') );
    I know the JQuery code works because I've tried it on a plain HTML page. The problem is the way the List View web part renders the output. since it's not available on the screen, the JQuery does not work.
    I really need to do this without any programming, since this type of interface appears many times throughout the site.
    Any ideas on how to accomplish this (get the HTML to show in 'view source' so I can apply the JQuery)?

    (bump)
    anyone?

  • Custom column in a list view web part for a multilingual site does not take on custom language labels. Stays in default language.

    Hello all,
    I have what so far appears to be a fairly unique problem.  We are running a multilingual SharePoint 2010 environment with English as the default language and French as the secondary.  We have setup the sites in a variance relationship, but the
    issue I am discussing happens outside of a variant as well.
    We have created a library outside the variant (but within the collection) that the two sites must share.  A list view web part was created via Designer to add to each site to provide a quick view into the list.  If we are in the libary and switch
    to French, then update the column label it will remember the setting (because of the resource file) and maintain it as the language is flipped back and forth.  Where it doesn't work is as a web part in a variant or where the language is different.
    If the language is different, the out of the box columns work find, but the custom columns (all site columns not library\list columns) remain as the english label.  It doesn't matter if within a variant or outside with the browser language changed. 
    It always reverts back to English.  It's like it isn't using the same resource file that was used in the list itself.
    I created a custom view and modified it with xslt as per
    http://sharepoint.stackexchange.com/questions/50004/how-to-change-column-title-for-a-view-but-not-modify-the-list but this only worked within the list and did not occur in the list view either.
    I can't be the first that has come across it, either I am not performing my searches properly, no one has ever documented a fix for this or this is something we just can't fix with OOTB tools.  That's the other thing, the solution has to be accomplised
    OOTB or with minor client side changes.  I can't fire up Visual Studio because they are piloting Office 365 and have put a "No custom code" mandate on for migration.
    Thank you all in advance.

    Ok, I have come up with a solution.  I edited the XSLT for the web part on the page.  I did the following:
    1.    Create the variants in the Site Ccollection
    2.    Create the library outside of the variants.
    3.    Add all the columns you require for the library.  It is very important all the columns are there before you move on.
    4.    Create a French and English view.
    5.    Create the list view web part via designer.
    6.    Add the list view web part to each site selecting the appropriate view to use.
    7.      Edit the page in SharePoint Designer 2010.
    8.      Place cursor in the column you wish to modify.
    9.      Click Design in the List View Tools on the ribbon.  
    10.     Then click Customize XSLT and select Customize Item.  Select this option otherwise you will generate a **LOT** of unnecessary XSL code.
    11.     You are looking for a piece that resembles the following:
            <xsl:with-param name="fieldtitle">
              <xsl:value-of select="@DisplayName"/>
            </xsl:with-param>
    12.      Modify it by typing in the actual column name you want.  You should end up with something like this:
            <xsl:with-param name="fieldtitle">
              New Column Name.
            </xsl:with-param>
    13.      Now, for this page only, the column will be renamed.
    There are some caveats:
    1.    Doesn’t appear to work in a publishing portal.  I think this has to do with how SP stores the pages in this case.  In a publishing portal you can only modify the page layout which won’t work as we need to modify the content.
    2.    If you add another column, you will need to repeat the XSLT modification
    Anyways, I hope this helps out any others with the same issue or need as I had.

  • Display Calendar View in List View Web Part

    We have a list and a calendar view of the list. I wanted to display the calendar view of the list in a List View Web Part in another page in the site.
    When I select the 'Calendar View' from the Views drop-down - it does not work.
    Please can you help.

    Hi Aritra,
    Is there some errors on your environment? So, you can have two workaround to do it.
    You can use SharePoint designer to add an empty data view source on your page ,then select the page.
    Use 
    Page viewer web part on your page, then put your calendar view web part page URL into your PVWP.
    Thanks,
    Jack
    Jack Gao
    TechNet Community Support

  • 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>
                            

  • Row limit in declarative list view web part

    Hi,
    Imagine you are in a scenario where you develop a custom web template or a site definition. Page Layouts with web part zones are being provisioned and out of them, decoratively web part pages are being created and populated with web parts. So something like:
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Module Name="XXXProjectPages" Url="$Resources:osrvcore,List_Pages_UrlName;" Path="" SetupPath="FEATURES\XXX_Intranet_PMO_PageLayouts\">
    <!-- Home -->
    <File Url="FullPageLayout\XXXFullPageLayout.aspx" Name="Default.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" ReplaceContent="TRUE" Level="Published">
    <Property Name="Title" Value="Team &amp; Collaboration" />
    <Property Name="ContentType" Value="$Resources:cmscore,contenttype_page_name;" />
    <Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/XXXFullPageLayout.aspx, ~SiteCollection/_catalogs/masterpage/XXXFullPageLayout.aspx" />
    <!-- Latest News -->
    <View List="Lists/Announcements" BaseViewID="102" WebPartZoneID="wpZone1" WebPartOrder="2">
    <![CDATA[
    <WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
    <Assembly>Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
    <TypeName>Microsoft.SharePoint.WebPartPages.ListViewWebPart</TypeName>
    <Title>Latest News</Title>
    <FrameType>TitleBarOnly</FrameType>
    </WebPart>
    ]]>
    </View>
    For simplicity, let's assume that we are working with instances of OOB list definitions, such as Announcements or Document Library. So far so good. And now the question...
    In my understanding if you want to do something as simple as limiting the number of items returned, or specifying a custom view criteria (filter/sorting/grouping, whatever) or just remove the toolbar, you have to go as far as provisioning an ENTIRE LIST
    DEFINITION, defining your custom View in it (which declares the toolbar type, row limit and View) and then reference this new View by its BaseViewID. Is that correct?
    Is there really no other, simpler way, of 'provisioning' and referencing a new view, to an existing list instance, along with the
    Module -> File -> View element? I see a couple of logical options:
    1) I would imagine such metadata could be stored in the web part and not the actual list. i.e. the web parts sends a CAML query to the list, based on the View metadata stored in it.
    2) As we know, when you Edit page and configure the View for a List View Web Part on the page, that view is stored as a new hidden view in the actual list (i.e. if you have two list view web parts that reference that list, you will have two additional hidden
    views). Then why can't we provision such (hidden) view along with the List View WebPart when we declare it and create the page? It could be created on first access of the page, or during the page
    provisioning.
    Another option could be the XmlDefinition property of the XsltListViewWebPart, but
    apparently it is being ignored. I have also tried using the 'CustomSchema' property of the ListInstance, but it totally makes no sense because:
    a) You cannot define more than one view in it, i.e. you have to override the OOB view that comes with the definition (lol?!)
    b) You are supposed to overwrite the entire list definition, instead of simply upgrading parts of it
    So, let me elaborate: if I want to have a <View> (ListViewWebPart) in my Page and this view to have some custom criteria, I have to provision an entire List Definition, is that correct? This is crazy.

    Hi Hristo,
    According to your description, my understanding is that you want to know if you can use <view> tag in the list view web part to define the row limit of list view web part.
    Per my knowledge, you can define rowlimit element in the view element for list view web part directly not necessary to modify the entire list definition.
    View Element:
    http://msdn.microsoft.com/en-us/library/office/ms438338(v=office.15).aspx
    Also, if you want to do more customization, you can still orverride the xslt.
    More reference:
    http://www.glynblogs.com/2011/04/overriding-the-presentation-of-an-xslt-list-view-web-part.html
    http://unorig.com/2012/08/15/format-a-list-web-part-with-xslt/
    Best Regards
    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]
    Zhengyu Guo
    TechNet Community Support

  • How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM.

    How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM. I found that it can be
    done by using XsltListViewWebPart class but how can I use this one by using shraepoint client api.
    shiv

    Nice, can you point me to the solution please ?
    I'm  trying to do this but I get an error : 
    Web Part Error: Cannot complete this action. Please try again. Correlation ID: blablabla
    StackTrace:    at Microsoft.SharePoint.SPViewCollection.EnsureViewSchema(Boolean fullBlownSchema, Boolean bNeedInitallViews)     at Microsoft.SharePoint.SPList.GetView(Guid viewGuid)   
    All help really appreciated.

  • How do I remove the grouping headings in my list view web part?

    I don't have access to SharePoint Designer and so far, that is all I can find that people are saying to use.  I understand and know how to edit the HTML in SharePoint, just don't know what code to put in and where exactly to put it so that the Document
    Library List View web part is grouped how I want, but doesn't actually show the group titles.  Any help would be greatly appreciated.  Thank you!

    Hi,
    I understand that you want to hide list view group headers, based on your description, I can suggest as follow:
    Add this code to a Content Editor Web Part (CEWP) in the list view. Adding a CEWP in a SharePoint 2010 list view will unfortunately remove the list view selector.
    <script type="text/javascript" language="javascript">
    _spBodyOnLoadFunctionNames.push("HideHeaders");
    function HideHeaders()
    var elements = getElementsByClassName(document, "td", "ms-gb");
    var elem;
    for(var i=0;i<elements.length;i++)
    elem = elements[i];
    elem.childNodes[3].style.display = "none";
    elem.removeChild(elem.childNodes[4]);
    elements = getElementsByClassName(document, "td", "ms-gb2");
    for(var i=0;i<elements.length;i++)
    elem = elements[i];
    elem.childNodes[3].style.display = "none";
    elem.removeChild(elem.childNodes[4]);
    elements = getElementsByClassName(document, "tr", "ms-viewheadertr");
    for(var i=0;i<elements.length;i++)
    elem = elements[i];
    elem.style.display = "none";
    Written by Jonathan Snook, http://www.snook.ca/jonathan
    Add-ons by Robert Nyman, http://www.robertnyman.com
    function getElementsByClassName(oElm, strTagName, strClassName){
    var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
    var arrReturnElements = new Array();
    strClassName = strClassName.replace(/\-/g, "\\-");
    var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
    var oElement;
    for(var i=0; i<arrElements.length; i++){
    oElement = arrElements[i];
    if(oRegExp.test(oElement.className)){
    arrReturnElements.push(oElement);
    return (arrReturnElements)
    </script>
    More information:
    http://edinkapic.blogspot.in/2008/06/hiding-list-view-group-headers.html
    http://spjsblog.com/2011/08/30/remove-group-label-in-grouped-list-view/
    If you have any questions, please reply me.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • How to Hide some Rows in a List view Web Part using JavaScript ?

    How to Hide some Rows in a List view Web Part using JavaScript ?

     Here is the code that worked for me:
    var Elements = document.querySelectorAll('div[id=WebPartWPQ3] table[class=ms-listviewtable]>tbody tr .ms-vb-lastCell.ms-cellstyle.ms-vb2')
    for(var i=0, n = Elements.length; i < n; i++)
     if(Elements[i].innerHTML=="India")
    Elements[i].parentNode.setAttribute("style","display:none")
    WebPartWPQ3 -> ID of webpart Div
    ms-listviewtable -> class name of table in Div
    ms-vb-lastCell.ms-cellstyle.ms-vb2 -> classname of td to get text

  • Missing views dropdown on list view web part.

    I asked this before, and it got moved to "admin" with no replies.  I really need to know this.  I think it may be appropriate for design and customization, because I think that's what the solution may require.  It doesn't appear to be an "admin" issue.
    Any help will be gratefully received.  I am very frustrated by this.  The  "View:" dropdown list on the right side of the list view web part for my document libraries is not available.  The truly weird thing is that in a few cases, it is there, but I can't tell any difference between those web parts or DLs and the ones without the views drop-down.  I have defined several public views for each document library. There are no "closed" web parts on the page (which was one suggestion I got).
    I can't figure out why the views menu sometimes appears and sometimes does not, when there appears to be no way to control it. Can anyone enlighten me or suggest how I can make it appear?  My users are threatening to demand a separate web part for each view (there are hundreds).  I may have trouble using SPD on the client's site.

    That works if the Web Part was Closed, but does not help if the user deleted the Web Part. 
    After some digging around in SharePoint Designer and in SharePoint itself, I have a solution for restoring the View dropdown after the out-of-the-box List View Web Part has been deleted.  This solution can be accomplished without SharePoint Designer if you are working with a library, but to clean out the views from a list, you will need SharePoint Designer.  I am doing this in MOSS 2007 SP1, but it should work for WSS 3.0 as well.
    For this example, I am using a document library called Public Documents and my View is allitems.aspx, but this should work for any list or library. 
    Here are the steps for bringing back the View dropdown:
    1.       Navigate to the list or library that is missing the View dropdown
    2.       Go to Site Actions > Edit Page > Add a Web Part .  In the Lists and Libraries section, check the box next to the Public Documents library and click the Add button.
    3.       Within the new Web Part, go to edit > Modify Shared Web Part and change the Toolbar Type to “Full Toolbar”.  Click the OK button.
    4.       Click the link to Exit Edit Mode and you should have the Full Toolbar for the list/library displayed, but it is still missing the View dropdown menu. 
    5.       Go to Settings > Create View .
    6.       Choose Standard View .
    7.       Name the view, check the “Make this the default view” box, select the columns to include, and click the OK button.
    8.       Voila, the View dropdown menu is back on the site.
    9.       To completely clean it up, for a list, open in SharePoint Designer and delete the allitems.aspx view from the Forms folder.  For a library, you can go to the Actions menu and select Open with Windows Explorer .  Open the Forms folder (you may need to show hidden files to see this folder) and delete the allitems.aspx view.  If you do not have access to SharePoint Designer and you are working in a list, you will need to delete the link on the Quick Launch and add again to point to your new view name.
    10.   If the View you deleted was the default for the list or library, it may remove the link from the Quick Launch.  It can be added again by going to View All Site Content , selecting the appropriate list or library, going into its Settings menu, and modifying the Title, description and navigation settings to show on the Quick Launch.

  • 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?

Maybe you are looking for

  • Query Designer not working with Aggregation Levels on BW 7.30

    Hi, Every time I try to create a query on top of an Aggregation Level that I created with the new ABAP based RSPLAN transaction. If somebody can help me out I'd appreciate it. By the way, we don't have the Java stack, but we are currently using BO4's

  • Payment terms in french language

    Dear Experts, I have company code in France and language of that company is French , can any one help me to understand how to make the payment terms description in French language

  • Attachments of type "Document Reference" in OAF

    Hi frnds, I have a question on viewing attachments in OAF. We have some documents attached to PO and the document type is "Document Reference" in fnd_documents. These documents are stored in the content management server, not in fnd_lobs, so fnd_docu

  • Can't import artwork manually in vista

    Trying to import artwork manually - in browser, items selected, get info window - I can paste, drag and drop or add jpeg artwork (right size) into artwork box but it doesn't show up in main window and when I return to get info it has disappeared comp

  • Adobe Flash Player won't install on my Windows 8 computer

    All we get is a blank page when trying to install Flash Player. I've done all of the suggested actions on the Adobe site, but it still won't install.