Debugging XSLT of Business Data List web part in SPD 2013

I am working on a Business Data List web part in SPD 2013. I want to customize that complex XSLT that got generated by the web part. It will be really helpful, if I can debug that XSLT. But I am not sure, how to debug XSLT from SPD? If at all, I need to
debug through Visual Studio also, I need the XML also, which I don't have. Can anyone please help?

Hi Ven,
XSLT debugging , I have never heard abt it. Its like UI design and you modify it and test it in Browser. Thats the only way.
one such sample is http://msdn.microsoft.com/en-us/library/cc300164(v=office.12).aspx
Please remember to click 'Mark as Answer' on the answer if it helps you

Similar Messages

  • Business Data List Web Part

    Hi all,
    I am using the Business Data List Web Part to show and search data from external database as following link
    http://msdn.microsoft.com/en-us/library/office/ms493107(v=office.12).aspx
    But the Business Data List Web Part doesn't allow me to choose one or multiple items as other SP lists. I mean it doesn't have the CheckBox column. How could I have it?
    Thanks

    Hi,
    According to your description, Business Data List Web Part which data from external database doesn't have the check box column.
    I have done a test in my SharePoint 2013, and I met the same issue with you. Although I defined the edit action for the external content types, I still couldn’t edit a record from business data list web part.
    I would suggest you to use External List. In this case you will be able to Add/Edit/View item if your External Content Type has all operations.
    Here is a blog about how to Create an External List, you can use as a reference:
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/01/07/how-to-create-external-list-including-database-from-sharepoint-designer-2013.aspx
    beside, here is a similar post, you can use as a reference:
    https://social.technet.microsoft.com/forums/sharepoint/en-US/1a958e61-2c73-472c-83c7-443466aefcf8/edit-item-in-business-datra-list-webpart
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • How do I set the scope to recursive in the Data View Web Part in SP 2013?

    How do I set the scope to recursive in the Data View Web Part in SP 2013?
    I have items in folders that I would like to display in the data view web part out of their folders.  I know that I need to set the scope to recursive.  I found documentation on how to do it in 2010, but since they removed all views other than
    the code view, I am unsure about how to do so.
    Link to article describing how to do what I am trying to do in 2010:
    https://www.nothingbutsharepoint.com/2009/05/13/data-view-web-part-folders-part-2-aspx/

    Hi,
    In SharePoint Designer 2013, we can click the code of the Data view web part. Then switch the tab to "OPTIONS". And then we can find the Folder Scope option, you can select "Show All Files of All Folders"
    to achieve your requirement.
    Thanks,
    Dennis Guo
    TechNet Community 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]
    Dennis Guo
    TechNet Community Support

  • Business Data List View ONLY Displays records - Cannot Edit them

    Using SharePoint 2010, I created an External Content Type. Data is coming from SQL Server. I created a new Read operation on my External Content type. I added a few filters in this Read View.
    I have created a web part page in which I placed a Business Data List Web Part. In Web Part properties I chose the VIEW in question. I can now filter my External List data and the Business Data List Web Part displays them. But I cannot edit these
    records!!!
    From the web Part properties window, I can ONLY choose Views that are created from READ operations. How do I allow users to edit data and save data in the original source (SQL Server).
    Mayank

    Below are the reference links on how to CRUD operations on external data using BCS
    CRUD operations using BCS using SharePoint designer
    http://zimmergren.net/technical/sp-2010-getting-started-with-business-connectivity-services-bcs-in-sharepoint-2010
    CRUD operations using BCS using Visual studio
    http://www.c-sharpcorner.com/uploadfile/anavijai/creating-external-content-type-with-crud-operations-using-business-data-connectivity-model-in-sharep/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • BCS Business Data List data HTML Formatting data

    I have a Business Data List webpart in Sharepoint Online (2013) which pulls data from a BCS List. This data contains HTML which is not rendering as HTML but the HTML text.
    I've modified the data to HTML format the data, no joy (example: < img src="/)
    I've modified the data to spit out the native html, no joy (example: <img src="/)
    I've modified the XSLT of the webpart using the Data View Properties (when editing the webpart in Sharepoint) to output the text from the list as below, which didn't work:
    <xsl:value-of select="@ArticleBody" disable-output-escaping="yes" ddwrt:nbsp-preserve="yes"/>
    and also this hasn't worked:
    <xsl:value-of select="@ArticleBody" disable-output-escaping="yes"/>
    I'm now at a loss as to how I can get the data to show with the html text being rendered as actual HTML on page

    found, the issue - there was a section further down the XSLT file that needed the disable-output-escaping adding to (below is the original section) - once updated it worked like a charm - thanks
    <xsl:template name="_LFtoBRloop">
        <xsl:param name="input" />
        <xsl:variable name="beforeText" select="substring-before($input, '&#xA;')" />
        <xsl:choose>
          <xsl:when test="string-length($beforeText) = 0 and substring($input, 1, 1) != '&#xA;'">
            <xsl:value-of select="$input" />
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$beforeText" />
            <br />
            <xsl:call-template name="_LFtoBRloop">
              <xsl:with-param name="input" select="substring($input, string-length($beforeText)+2)" />
            </xsl:call-template>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:template>

  • Show all items in data form web part when no filter value

    I have connected a XSLT list view web part with a data form web part.
    The list view web part sends the connection parameter and the data form web part filters the corresponding content.
    I need the data form web part to show all the data in the list when the connection parameter is empty.
    Please let me know how i can implement this.

    Any ideas !!

  • How to limit the number of items in a KPI Status list web part?

    How to limit the number of items in a KPI Status list web part? There is no paging option for Business Category Status list or any limit can be made by changing the Item limit in default view unlike other SharePoint List web parts. So How to achieve it?
    Kindly help.
    Regards,
    ZA
    zzzSharePoint

    Hi,
    According your post, I know you would like to set the item display limit in Status List web part.
    In the web part, the number of items to display is based on the view which you selected when configuring the web part. The default view for status list is status list view.
    However, I am not able to limit the items’ display number of the status list view. After changing the items limit, the list item displayed would not match the number specified by Item Limit. Thus, it is not possible to limit the number
    of items in the Status list web part.
    It could be a potential issue in SharePoint 2010.
    We will log this issue to our suggestion box. As after the submission, we may not have any time guarantee when the fix may be released, but it may come out on next cumulative update.
    Appreciate your time and efforts.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Modify the data source of a data view web part

    I have a dataView web part deployed in a template in multiple site collection. This dataView hasn't any query set up, so it loads a lot of items and this is slowing down my system.
    Now I want to programmatically put a query overriding the existent (empty) one and I'm doing like this:
    System.Web.UI.WebControls.WebParts.WebPart y = (System.Web.UI.WebControls.WebParts.WebPart)item;
    Microsoft.SharePoint.WebPartPages.DataFormWebPart z = (Microsoft.SharePoint.WebPartPages.DataFormWebPart)item;
    StringBuilder dataSourceString = new StringBuilder("<%@ Register TagPrefix=\"sharepoint\" Namespace=\"Microsoft.SharePoint.WebControls\" Assembly=\"Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c\" %>");
    dataSourceString.Append("<%@ Register TagPrefix=\"WebPartPages\" Namespace=\"Microsoft.SharePoint.WebPartPages\" Assembly=\"Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c\" %>");
    dataSourceString.Append("<sharepoint:SoapDataSource runat=\"server\" SelectUrl=\"http://intranet.contoso.com/sites/spc/_vti_bin/lists.asmx\" InsertUrl=\"\" UpdateUrl=\"\" DeleteUrl=\"\" SelectAction=\"http://schemas.microsoft.com/sharepoint/soap/GetListItems\" InsertAction=\"\" UpdateAction=\"\" DeleteAction=\"\" SelectPort=\"ListsSoap\" InsertPort=\"\" UpdatePort=\"\" DeletePort=\"\" SelectServiceName=\"Lists\" InsertServiceName=\"\" UpdateServiceName=\"\" DeleteServiceName=\"\" AuthType=\"Basic\" AuthUserName=\"contoso\\administrator\" AuthPassword=\"pass@word1\" WsdlPath=\"http://intranet.contoso.com/sites/spc/_vti_bin/lists.asmx?WSDL\" XPath=\"\" ID=\"SoapDataSource3\">");
    dataSourceString.Append("<SelectCommand><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><GetListItems xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\"><listName>Jobs</listName>");
    dataSourceString.Append("<Query><Where><Eq><FieldRef Name=\"Title\" /><Value Type=\"Text\">2012_080_A_0</Value></Eq></Where></Query>");
    dataSourceString.Append("<rowLimit>9999</rowLimit></GetListItems></soap:Body></soap:Envelope></SelectCommand><InsertCommand></InsertCommand><UpdateCommand></UpdateCommand><DeleteCommand></DeleteCommand></sharepoint:SoapDataSource>");
    z.DataSourcesString = dataSourceString.ToString();
    manager.SaveChanges(z);
    In my code, I can see the DataSourceString changing, but if I refresh the page it is still loading all the data: why?!

    Hi,
    According to your description, my understanding is that you want to change the data view web part datasource programmatically.
    We need to override the databind method like below:
    public class ExtendedDataFormWebPart : DataFormWebPart
    public override void DataBind()
    this.DataSource = your own data source;
    base.DataBind();
    Here is a detailed code demo for your reference:
    http://jamestsai.net/Blog/post/How-to-query-cross-site-lists-in-DataFormWebPart-Part-1-Build-your-own-data-source-for-DataFormWebPart.aspx
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Cacade Sharepoint List Web Part

    hi,
    I created a custom view and insert 2 SP List Filter to filter the list content.
    The 2 SP List Filters are related, for example:
    Filter #1 - list of companies.
    Filter #2 - list of employees.
    I would like the Filter #2 to display only the list of employees for the selected company in Filter #2.
    How to accomplish this?
    Thank you.

    Hi Chuaky,
    Based on your description, I  understand what you want is that when you click a column in the list of companies, the list of employees display the 
    Corresponding items.
    You can implement your requirement  as the following:
    1.Create a companies list and create a column named company.
    2.Create a employees list and it also contains a column named company.
    3.Add the two lists into one page.
    4.On the page, click page ribbon --click edit , at companies list web part, choose edit web part--Connection--Send Row of Data to-- choose 
    employees--choose Get filter Values from--choose "Provider Field Name: company (from companies list), Consumer Field Name: company (from employee list)"--finish.
    5.The companies list web part will automatically add  a column named Select, click select, now what you want is finished.
    Besides the above, There are is a link which you can use as a reference:
    http://blogs.technet.com/b/rajbugga/archive/2013/04/25/creating-connected-web-parts-in-sharepoint.aspx
    Best  regards,
    Wendy Li
    TechNet Community Support

  • Filter in data view web part using sharepoint designer 2010

    Hi,
    i have a scenario that there are 4 column Name, shift time, Location, Date. so i have to create a data view web part using designer. 
    further conditions are:
    1.Shift time should be radio button and filter the data accordingly.
    2. Data display only for current date(system date).
    3. Group by Location.
    i have complete all things except how to display data according current date. its showing all dates result.
    So please help me how to give a expression or filter to do this. if you have xslt code then plz let me know.
    Please help ASAP.
    Thanks
    Vivek

    Hi Vivek,
    If i understand it right, you know how to do other bits and want help in displaying data for only current date. on your view you can use filter condition as :
                    column: Date
                    condition : is equal to
                     value:     [Today]
    Let me know if this helps.
    Regards
    P
    Please don't forget to mark an answer if it solves your problem.

  • Hide column header in a SharePoint list web part view ?

     Hi ALl,
    I have a links list in SharePoint 2010 and created a custom standard view to show links on home page.
    I want to hide header column for that particular created list web part view.I have used following css but it's hide all list
    and libraries header column.
    .ms-viewheadertr
      display: none;
    I want to hide specific list web part view column hide.
    Following is a snap in this i want to hide URL column in this view.
    Thanks,
    Balaji More

    You can add the following to an .xsl file and link to it in the "Miscellaneous" options when you edit the web part. By doing it this way, you can reuse the same style sheet over and over.
    This xsl basically overrides a couple of templates located in the "vwstyles.xsl" file, and removes the lines that add the header.
    (This code works in production, but I may not have replicated it properly in this forum, so please test first.)
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
    xmlns:ddwrt2="urn:frontpage:internal"
    xmlns:o="urn:schemas-microsoft-com:office:office">
    <xsl:include href="/_layouts/xsl/main.xsl"/>
    <xsl:include href="/_layouts/xsl/internal.xsl"/>
    <xsl:template match="View" mode="full">
    <xsl:apply-templates select="." mode="RenderView" />
    <xsl:apply-templates mode="footer" select="." />
    </xsl:template>
    <!-- Boxed and Boxed No Labels -->
    <!-- Issues Boxed and Boxed No Labels -->
    <xsl:template match="View[ViewStyle=/@ID='12' or ViewStyle=/@ID='13' or ViewStyle=/@ID='18' or ViewStyle=/@ID='19']" mode="full">
    <xsl:apply-templates select="." mode="RenderView" />
    </xsl:template>
    </xsl:stylesheet>
    DH

  • Sharepoint 2013 Web Parts missing - XsltListViewWebPart, Data View Web Part ...

    Hi,
    I'm using a SP2013 standalone dev server and I can´t find some web parts like XsltListViewWebPart and Data View Web Part.
    I was expecting to find a category like "Lists and Libraries" or "Authoring" but I can´t find it.
    I'm a site collection admin and have standard, enterprise and publishing features activated.
    Shouln´t I see those Web Parts?
    I noticed that I don´t have any file "XsltListViewWebPart.webpart" on my server file system. should it exists there?
    Thanks,
    DD 

    Hi,
    If you want to add a XsltListViewWebPart into page via UI.
    In SharePoint 2010, we can find in "Lists and Libraries" category.
    In SharePoint 2013, the category named "Apps".
     Best Regards
    Dennis Guo
    TechNet Community Support

  • Views for list web parts. Is there a way to allow users to change the view for a list web part without being redirected?

    Hi,
    I added a list view web part into a SharePoint 2013 page and it  is working as expected, except for one thing.
    I have enabled the option for the user to change the view for the web part. However when the user changes it, the user is redirected away from the page containing the web part, to the URL of the list itself.
    Is there a way to circumvent this issue so when the user selects a different view it updates the listing in the web part itself, rather than the user being redirected?
    Thanks in advance for the help.
    Regards,
    P.

    Hi,
    Please understand that one page can only display one view. You could find it out by observing the Address in browser when switching among different views for a list.
    If you would like to change the view of a list web part, you could go to web part propertites > Select view and configure it.
    In addition, here is a thread with similar requirement that might help:
    http://social.technet.microsoft.com/Forums/en-US/18dba190-5ee2-4b50-b005-1360d862f4ba/how-can-end-user-change-the-view-in-a-list-view-web-part?forum=sharepointgeneralprevious
    Regards,
    Rebecca Tu
    TechNet Community Support

  • SP2013 - Date Filter Web Part looses connection when used in a site template

    Hi,
    I created two table reports in SQL Reporting Services 2012 and inserted in a web page using the Reporting Service Report viewer in SharePoint 2013 with CU Dez 2013. The two reports require two dates and I use two date filter web parts (I did not try the
    date range solution I saw in the fórum).
    So the user inputs the two dates in date filters that send the information to thereports in the same page.
    They work in the site and I saved it as template. However when I create e new site using it as a templates, the date filter connections are broken and of course, they did not work.
    For another report where I usea text filter, it worked without any problem in the template.
    Does anybody know any workaround?
    Thank you.
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

    Hi ,
    The new site based on the saved site template will generate new ID for date filter web part, in the web part page the SPWebPartConnection "ProviderID" value seems still to reference the original date filter web part ID (see from
    SharePoint Designer), as a workaround we can re-configure the web part connection from the web part page manually or programmatically from that new site web part page.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/8d98206d-b41f-4ee4-b537-a4bf5cec0434/sharepoint-2010-save-site-as-template-webpart-connections-broken?forum=sharepointgeneralprevious
    http://sympmarc.com/2007/09/20/removing-a-web-part-connection-in-sharepoint/
    Thank
    Daniel Yang
    TechNet Community Support

  • Cannot get URL web part filter to pass Parameter to List web part

    How do I wire an out-of-the-box URL web part filter to a SharePoint 2013 list (or "app" as renamed in 2013) web part when the list has a parameter?
    My SharePoint list uses a parameter because it needs a Contains filter, as in
         <Where>
          <Contains>
           <FieldRef Name="MyFieldName"/>
           <Value Type="Note">{MyParam}</Value>
          </Contains>
         </Where>
    The ParameterBinding is defined simply.
    <ParameterBinding Name="CohortParam" DefaultValue=""/>
    It has had Location="None" in the past, but another forum entry that I read suggested removing that.
    When I add the list (or "app" in SharePoint 2013) to a web part page and also add a URL Filter web part, the URL filter cannot see the parameter. The menu chain Connection >> Send Filter Values To >> [My List web part name] shows
    the dialogue. On the "Choose Connection" tab, I choose "Get Parameter Values From". Clicking the "Configure" button results in the "Configure Connection" tab having the message "The Consumer Web Part did not
    provide schema information".

    Hi Randy,
    You need to change the "MyParam" to "CohortParam", for parameterbinding element we need to add the location attribute as below codeline, then when we use the QueryString "CohortParam" with value in url, it will directly
    filter the list web part items without adding URL Filter web part.
    <ParameterBinding Name="CohortParam" Location="QueryString(CohortParam)" DefaultValue=""/>
    I attached my resutls as below image (also "MyParam" can be changed to "CohortParam" if you want), you can take a look.
    Thanks,
    Daniel Yang
    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]
    Daniel Yang
    TechNet Community Support

Maybe you are looking for