Dataview webpart

Hi
I am trying to use dataview webpart on SharePoint 2013, I am using SPD to create dataview web part and added couple of columns from my forms. I can see my newly create webpart page, I would like to total columns value using sum function but
not getting result.Also, how do you apply filter on column
I have used command <xsl:value-of select="sum(@TJun_x0020_14)"/>
please help, also do not know exact placement in code
tp

Hi Tejal,
According to your description, my understanding is that you want to use sum function in the dataview web part.
You can add a new your XSL to emit the total like this:
<xsl:template name="dvt_1.body">
<xsl:param name="Rows"/>
<xsl:for-each select="$Rows">
<xsl:call-template name="dvt_1.rowview"/>
</xsl:for-each>
<tr>
<td>
TOTAL
</td>
<td>
<xsl:value-of select="format-number(sum($Rows/@Potential_x0020_Value),'#,##0')"/>
</td>
</tr>
</xsl:template>
Here is a detailed article for your reference:
Summing a Column in a Data View Web Part
Best Regards
Zhengyu Guo
TechNet Community Support

Similar Messages

  • How to delete multiple items in XSLT Dataview webpart

    Hi,
       I am creating a combined view based on 3 lists with common column like (number) with merge option and now I have added a delete button on top and my requirement is to delete multiple items on selection in combined view using linked data
    source and for single item I am able to delete but I am unable to get the data from number field on multiple selection. deletion is performing in 3 lists based on number column value.
                   Kindly give me any better procedures than this for deletion of multiple item on selection.
    Thanks
    Razvi444

    Hi  Razvi444,
    According to your description, my understanding is that you want to delete multiple items in XSLT Dataview webpart on button click.
    For achieving your demand, you can refer to the blog:
    http://tanveerkhan-sharepoint.blogspot.in/2011/08/delete-multiple-items-using-dataview.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • SharePoint 2010 Dataview webpart in Datasheet view

    Is it possible to display a Dataview webpart in Datasheet view?
    To be more precise,I am using Dataview webpart to display a XML file data(using XML file connection in SPD).I would like to know if i can display this data using Datasheet view from the DVWP.
    Any inputs/suggestions would be highy appreciated....

    Is it possible to display a Dataview webpart in Datasheet view?
    To be more precise,I am using Dataview webpart to display a XML file data(using XML file connection in SPD).I would like to know if i can display this data using Datasheet view from the DVWP.
    Any inputs/suggestions would be highy appreciated....

  • SharePoint DataView Webpart

    Hello Techies,
    I have  a list which has one column as Status(Dropdown-Choice) with following options: Assigned, Rejected,Answered.
    I need to get the count of all item based of Status-options.
    for eg Count of all Assigned Items, Rejected Items and Answered Items
    I have tried with dataview webpart through SPD but facing few issues .Any help will be appreciated.

    Hello Vivek,
    I used below code in dataview webpart
    <xsl:variable name="Rejected"
    select="count(/dsQueryResponse/Rows/Row[normalize-space(@Status)='Rejected'])" />
    <xsl:with-paramname="Value"><xsl:value-ofselect="$Rejected"/></xsl:with-param>It displays 0 as count and i have couple items as rejected

  • To show ECB in dataview webpart Sharepoint 2013

    HI
    I have to add ECB to my dataview webpart. Normally it was not feasible in 2010 but is it possible now in 2013.
    Can we add the ECB or it remains same 
    Thanks

    Hi,
    According to your post, my understanding is that you wanted to show ECB in dataview webpart Sharepoint 2013.
    If you want to enable ECB menu on a column in dataview webpart, you need to open the SharePoint Designer 2013, select the web part, under
    <View> locate  <ViewFields> and then the
    <FieldRef Name=”Title”> or the field where you want to enable the ECB menu and then add the attribute
    ListItemMenu=”TRUE”.
    Here is a similar blog for you to take a look at:
    http://www.dhirendrayadav.com/2013/12/enabling-ecb-menu-on-custom-column-in.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Paging is not working in xslt dataview webpart

    Hi,
        Problem: Paging is not working in combined views, created by using linked data source
        Decription: Created a combined view using 3 different lists with merge option and enabled paging and grouping. Paging is not working and I have set display sets up to 30 items. Kindly provide any possible scenarious which causes this issue
    and any solutions.
    Thanks
    Razvi444

    Hi Razvi444,
    I assume you created the view web part as the link below:
    http://sp2013.blogspot.com/2013/11/two-sharepoint-lists-in-dataview-linked.html
    After that, we could add web part on our site page by insert > web part > miscellaneous > data source name. By default, the data source is set to display sets of 10 items in Paging.
    If you would like to switch it to 30 items, please save it and save the web part to Site Gallery as well. Then give it a new name and re-add the web part to our page.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How can we access Page metadata in DataView Webpart in SharePoint Designer 2013?

    Hi,
     I need to access Page metadata in my Data view web part and I am having a feeling, that the "Form" option can help me getting Page metadata, but I am not able to get much information about using this field as a parameter source on net? Can
    anybody advise, how to use "Form" option in "Parameter Source" in SharePoint Designer 2013
     OR Suggest me any other way to get Page metadata in Data View Webpart?
    Thanks in advance,
    Regards,
    Deepali
    Deepali

    Hi  Deepali,
    All the parameter source are ASP Request Object collections  which is used to get information from a visitor.  
    For accessing page metadata, you can select Server  Variable.
    For more information ,you can refer to the following article:
    http://www.w3schools.com/asp/asp_ref_request.asp
    http://blogs.msdn.com/b/spdsupport/archive/2008/07/25/data-view-data-form-parameters-you-don-t-know-about.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Export Dataview webpart using the listURL property

    I have a data view webpart (dataform) on a page. I have to package the webpart into a solution so I exported the webpart using the sharepoint designer but figured that the webpart is connected to a list by the list id. I wish to use list url instead of list
    id so that I can deploy it to new environment.
    I tried adding a list url parameter to the parameter bindings group but that didn't work..
     Any ideas on how to do this?
    Student For Life

    Design view is removed from SPD 2013, however if you have SPD 2013 you can edit the SP 2013 pages work on it, desing or whatever you want to you can do and then publish.
    You can choose to add data view, add your pagination all you can do in SPD 2010 and then publish it in you SP 2013. Take a look at this video
    http://www.youtube.com/watch?v=EdW6eHOO-uI
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • Sharepoint 2013 XSLT view in Dataview webpart

    I have one doubt. Recently I seen that in sharepoint 2013, for data view webpart xslt view is not available in Sharepoint Designer. I came to know that XSLT view will not be supported in 2013. My query is whether Microsoft will remove complete XSLT part
    in next version of sharepoint. Like Content query webpart and all. Also am not getting why they removed that XSLT view in 2013. Because if they are going to remove XSLT, then it will create a problem in migration and all. Please clear me if you have any idea
    on the same.

    Hi,
    You should use CSR(Client Side rendering)
    http://sharepoint.stackexchange.com/questions/75451/xsl-to-customize-xsltlistviewwebpart-sharepoint-foundation-2013
    http://www.rbradbrook.co.uk/blog/2013/04/14/introduction-to-client-side-rendering-in-sharepoint-2013/
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Exporting to Microsoft Excel from a DataView Web Part consuming a Web Service with Parameters

    In Sharepoint Designer, I've developed a page displaying a DataView Web Part which consumes an XML Web Service with three parameters.  These parameters are passed in from a simple Form Web Part containing three input fields.  I am able to provide default values for the web service so the dataview is initially populated, and when I enter in new parameters, the web service goes back, grabs the requested data and displays in the dataview nice and slick.
    The problem I'm having is this: In Internet Explorer 7, when I right-click on the DataView Web Part and select Export to Microsoft Excel, Excel opens up, says "ExternalData_1: Getting Data..." and returns the data from the web service which applies to the default parameter values each and every time, regardless of whether I have changed the parameters on the web page, and contrary to what the DataView Web Part displays on the screen.
    Has anyone else run into this, and is there a solution to the problem?
    Best regards,
    Mark Christie

    Hi Bullish35,
     It's possible to provide single export button and export your 4 dataview webparts. Here's the modified code.
    <Script Language="Javascript">
    function isIE() // Function to Determine IE or Not
    return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);
    function exportToExcel() // Function to Export the Table Data to Excel.
    var isIEBrowser = isIE();
    if(isIEBrowser== false)
    alert('Please use Internet Explorer for Excel Export Functionality.');
    return false;
    else
    var strTableID1 = "detailsTable1", strTableID2 = "detailsTable2", strTableID3 = "detailsTable3", strTableID4 = "detailsTable4";
    var objExcel = new ActiveXObject("Excel.Application");
    var objWorkBook = objExcel.Workbooks.Add;
    var objWorkSheet = objWorkBook.Worksheets(1);
    var detailsTable = document.getElementById(strTableID1);
    var intRowIndexGlobal= 0;
    for (var intRowIndex=0;intRowIndex<detailsTable1.rows.length;intRowIndex++)
    for (var intColumnIndex=0;intColumnIndex<detailsTable1.rows(intRowIndex).cells.length;intColumnIndex++)
    if(intColumnIndex != 3)
    objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable1.rows(intRowIndex).cells(intColumnIndex).innerText;
    intRowIndexGlobal++;
    for (var intRowIndex=0;intRowIndex<detailsTable2.rows.length;intRowIndex++)
    for (var intColumnIndex=0;intColumnIndex<detailsTable2.rows(intRowIndex).cells.length;intColumnIndex++)
    if(intColumnIndex != 3)
    objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable2.rows(intRowIndex).cells(intColumnIndex).innerText;
    intRowIndexGlobal++;
    for (var intRowIndex=0;intRowIndex<detailsTable3.rows.length;intRowIndex++)
    for (var intColumnIndex=0;intColumnIndex<detailsTable3.rows(intRowIndex).cells.length;intColumnIndex++)
    if(intColumnIndex != 3)
    objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable3.rows(intRowIndex).cells(intColumnIndex).innerText;
    intRowIndexGlobal++;
    for (var intRowIndex=0;intRowIndex<detailsTable4.rows.length;intRowIndex++)
    for (var intColumnIndex=0;intColumnIndex<detailsTable4.rows(intRowIndex).cells.length;intColumnIndex++)
    if(intColumnIndex != 3)
    objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable4.rows(intRowIndex).cells(intColumnIndex).innerText;
    intRowIndexGlobal++;
    objExcel.Visible = true;
    objExcel.UserControl = true;
    </Script>
    I haven't tested this. But it should work! :)Regards,
    Venkatesh R
    /* My Code Runs in Visual Studio 2010 */
    http://geekswithblogs.net/venkatx5/

  • How to pass query string from content editor webpart to another?

    Hi All,
    I am using content editor web-part to show GooglePiechart  for workflow status column in a list. When user click on chart, i need to show particular clicked area data in another list web-part. So that, i need to pass the query value from content editor
    web-part to another web-part. How to achieve this scenario?

    Hi Sam,
    What you can do is using SPD create a data view webpart which excepts query string value as filters as shown in the below article
    http://madanbhintade.wordpress.com/2012/01/08/sharepoint2010dataviewwebpart/
    http://sharepoint.stackexchange.com/questions/55184/how-to-filter-dataview-webpart-dvwp-from-query-string
    Then When you click on the pie charts particualr section perform a post back  by appending the required query string paramter to the same page on which your webpart exist
    Raghavendra Shanbhag | Blog: www.SharePointColumn.com
    Please click "Propose As Answer " if a post solves your problem or "Vote As Helpful" if a post has been useful to you.
    Disclaimer: This posting is provided "AS IS" with no warranties.

  • Errors while editing the xsl for dataview web part

    while modifying a dataview webpart in sharepoint designer, i finding the issues for the below line
    <xsl:for-each select="$Rows[substring-before(substring-after(substring-after(@FullName, '?ID='), '>'), '<') = $FullName]">
    errors:
    the tag is marked invalid because it is missing quote for  '>' and '<'
    the tag is marked invalid because it has an extra quote ">

    Hi ,
    According to your description, my understanding is that you got an error when you edited the xsl for dataview web part.
    Please try to change
    <xsl:for-each select="$Rows[substring-before(substring-after(substring-after(@FullName, '?ID='), '>'), '<') = $FullName]">
    To
    <xsl:for-each select="$Rows[substring-before(substring-after(substring-after(@FullName, '?ID='), '&gt;'), '&lt;') = $FullName]">
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • If I want to create a set of hierarchical relational content types, how do I move from one to the other?

    My scenario. I have been asked to create a series of content types to manage Report requests. A Report Base content type to be the parent, then three content types to extend that base to a Report Crystal, Report SSRS and Report SSIS. These top level
    reports collect data once. Once an instance of the "Report Crystal" content type  has been created the Report Writer needs to fill out another content type "Report DataSource" related by the ID of the parent to track any
    stored procedures used in the report, what database\s does it hit... Here is where I am lost on the how to fill out related lists. Do I add a calculated column that attaches the report ID the a URL? e.g. ..ReportDatasource/newform.aspx?ReportID=1 which will
    then show me the form. Or has this changed in 2013. I am reverse engineering some 2007 code to try to figure this out.
    The next step after that hurdle is, when the report writer has completed each data source entry, a workflow generates and email with links to a "Change Request" form. There would be one created for each row in the Report Datasource. The
    DBA would have to evaluate each "Change Request" and either Pass or Fail each one.  This Pass\Fail parameter and a description would get recorded in a "Change Result Log".
    I am wondering if a workflow replace the need for calculated columns or at least some. I think I have to have a calculated column in the initial "Report Crystal" column to fire off creating the first "Report DataSource" entry. And
    then a calculated column on that to give the option of adding another entry into the "Report DataSource" list if there are multiple procedures for the report. But if the report writer sets a column in the "Report DataSource" as Ready 
    For Review" a workflow should generate the Change Request.
    The flow is kind of set in stone but the structure is not. A very high level few of the data points

    Hi Developer_46038, 
    if for example all the properties and object are stated as list, i think there is a tool that overcome cross list.
    http://listrollup.codeplex.com/
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/13a51be5-4007-46e8-bbb2-5e04320dfebd/cross-list-webpart?forum=sharepointcustomizationlegacy
    you can also using dataview webpart to show the cross lists:
    http://office.microsoft.com/en-us/sharepoint-designer-help/create-a-data-view-HA010094804.aspx
    http://office.microsoft.com/en-us/sharepoint-designer-help/connect-two-data-views-HA010169133.aspx
    3rd party: http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2009/03/11/relational-database-capabilities-for-sharepoint-lists-cross-list-web-part.aspx
    but i am not quite sure how crystal report will do, if you can make the crystal report as also list, i think its possible, 
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/8247edf5-dee8-49d8-b7ee-9e49bfd97b9b/crystal-report-in-sharepoint-2010-webpart?forum=sharepointdevelopmentprevious
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Displaying Document Name With The Summary in a Single Column Using Document Library View.

    Hi All,
    I have a question that relates to SharePoint Document Library Views. I want to view the Documents name with the summary in a single column. Below image shows an example of it. I need this within a SharePoint Document Library. Also I want the height of the
    row to be increased more than the default height. I cannot figure it out how to do that? Could you someone help me to do this. I have inserted the Document Library as an App Part to the page. 
    So could you someone help me to solve this matter?
    Thanks and regards,
    Chiranthaka

    HI Chiranthaka,
    You can create DataView webpart using SPD and then modify the display template according to your need.
    http://deannaschneider.wordpress.com/2012/07/10/item-counts-dvwp-sp2010/
    Hope this will help to solve your problem.
    Best Regards,
    Brij K

  • Displaying Document Name & The Summary in a Single Column Using Document Library View

    Hi All,
    I have a question that relates to SharePoint Document Library Views. I want to view the Documents name with the summary in a single column. Below image shows an example of it. I need this within a SharePoint Document Library. Also I want the height of the row
    to be increased more than the default height. I cannot figure it out how to do that? Could you someone help me to do this. I have inserted the Document Library as an App Part to the page. 
    So could you someone help me to solve this matter?
    Thanks and regards,
    Chiranthaka

    HI Chiranthaka,
    You can create DataView webpart using SPD and then modify the display template according to your need.
    http://deannaschneider.wordpress.com/2012/07/10/item-counts-dvwp-sp2010/
    Hope this will help to solve your problem.
    Best Regards,
    Brij K

Maybe you are looking for