Data View Web part can't able to edit in share point 2013

Feb 13, 2014 at 7:10 AM
I have created a data view web part for my document library for collapse/expand , i have query the field using parameter editor, i need to add filter condition in XSL Editor but i cant able to edit the XSL editor Can any one help me?
Coordinator
Feb 13, 2014 at 11:35 AM
This question doesn't have anything to do with SPServices, so it really doesn't belong here.

Also, I really can't help based on your description. No idea what you're up to.

M.
Feb 13, 2014 at 11:50 AM
I use the following XSL in a DVWP. But Expand is not working but collapse is working
 <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">
 <xsl:output method="html" indent="no"/>
 <xsl:decimal-format NaN=""/>
 <xsl:param name="dvt_apos">'</xsl:param>
 <xsl:param name="ManualRefresh"></xsl:param>
 <xsl:param name="dvt_firstrow">1</xsl:param>
 <xsl:param name="dvt_nextpagedata" />
 <xsl:param name="dvt_groupfield" />
 <xsl:variable name="dvt_1_automode">0</xsl:variable>
 <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
  <xsl:choose>
   <xsl:when test="($ManualRefresh = 'True')">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
     <tr>
      <td valign="top">
       <xsl:call-template name="dvt_1"/>
      </td>
      <td width="1%" class="ms-vb" valign="top">
       <img src="/_layouts/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
      </td>
     </tr>
    </table>
   </xsl:when>
   <xsl:otherwise>
    <xsl:call-template name="dvt_1"/>
   </xsl:otherwise>
  </xsl:choose>
 </xsl:template>
 <xsl:template name="dvt_1">
  <xsl:variable name="dvt_StyleName">Table</xsl:variable>
  <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
  <xsl:variable name="dvt_RowCount" select="count($Rows)"/>
  <xsl:variable name="RowLimit" select="150" />
  
  <xsl:variable name="FirstRow" select="$dvt_firstrow" />
  <xsl:variable name="LastRow" select="$FirstRow + $dvt_RowCount - 1" />
  <xsl:variable name="IsEmpty" select="$dvt_RowCount = 0 or $RowLimit = 0" />
  
  <xsl:variable name="dvt_IsEmpty" select="$dvt_RowCount = 0"/>
  <xsl:choose>
   <xsl:when test="$dvt_IsEmpty">
    <xsl:call-template name="dvt_1.empty"/>
   </xsl:when>
   <xsl:otherwise>
    <table border="0" cellpadding="2" cellspacing="0" style="width: 65%">
     <tr valign="top">
      <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
       <th class="ms-vh" width="1%" nowrap="nowrap"></th>
      </xsl:if>
      <th class="ms-vh" nowrap="nowrap" style="width: 56px">File Type</th>
      <th class="ms-vh" nowrap="nowrap" style="width: 292px">Name</th><th class="ms-vh" nowrap="nowrap" style="width: 236px">Modified</th><th class="ms-vh" nowrap="nowrap">Modified By</th></tr>
     <xsl:call-template name="dvt_1.body">
      <xsl:with-param name="Rows" select="$Rows"/>
      <xsl:with-param name="FirstRow" select="1" />
      <xsl:with-param name="LastRow" select="$dvt_RowCount" />
      
      
      
     </xsl:call-template>
    </table>
   </xsl:otherwise>
  </xsl:choose>
  <xsl:call-template name="dvt_1.commandfooter">
   <xsl:with-param name="FirstRow" select="$FirstRow" />
   <xsl:with-param name="LastRow" select="$LastRow" />
   <xsl:with-param name="RowLimit" select="$RowLimit" />
   <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
   <xsl:with-param name="RealLastRow" select="number(ddwrt:NameChanged('',-100))" />
  </xsl:call-template>
 </xsl:template>
 <xsl:template name="dvt_1.body">
  <xsl:param name="Rows"/>
  <xsl:param name="FirstRow" />
  <xsl:param name="LastRow" />
  <xsl:variable name="dvt_Rows"><root>
   <xsl:for-each select="$Rows">
    <xsl:if test="(position() &gt;= $FirstRow and position() &lt;= $LastRow)"><xsl:copy-of select="." /></xsl:if>
   </xsl:for-each>
   </root></xsl:variable>
  <xsl:for-each select="$Rows">
   <xsl:variable name="NewGroup_0">
    <xsl:choose>
     <xsl:when test="not ($dvt_groupfield)"><xsl:value-of select="ddwrt:NameChanged(string(@ViewType), 0)" /></xsl:when>
     
     <xsl:otherwise></xsl:otherwise>
    </xsl:choose>
   </xsl:variable>
   <xsl:variable name="NewGroup_1">
    <xsl:choose>
     <xsl:when test="not ($dvt_groupfield)"><xsl:value-of select="ddwrt:NameChanged(string(@Organization), 1)" /></xsl:when>
     <xsl:otherwise></xsl:otherwise>
    </xsl:choose>
   </xsl:variable>
   <xsl:variable name="NewGroup_2">
    <xsl:choose>
     <xsl:when test="not ($dvt_groupfield)"><xsl:value-of select="ddwrt:NameChanged(string(@Year), 2)" /></xsl:when>
     <xsl:otherwise></xsl:otherwise>
    </xsl:choose>
   </xsl:variable>
   <xsl:choose> 
    <xsl:when test="0" />
    <xsl:when test="not($dvt_groupfield) and (not($NewGroup_0='') and position() &gt;= $FirstRow and position() &lt;= $LastRow or ($FirstRow = position()))">
     <xsl:variable name="groupheader2">
      <xsl:choose> 
       <xsl:when test="not (@Year) and (@Year) != false()"><xsl:value-of select="' '" /></xsl:when>
       <xsl:otherwise><xsl:value-of select="@Year" /></xsl:otherwise>
      </xsl:choose>
     </xsl:variable>
     <xsl:variable name="groupheader1">
      <xsl:choose> 
       <xsl:when test="not (@Organization) and (@Organization) != false()"><xsl:value-of select="' '" /></xsl:when>
       <xsl:otherwise><xsl:value-of select="@Organization" /></xsl:otherwise>
      </xsl:choose>
     </xsl:variable>
     <xsl:variable name="groupheader0">
      <xsl:choose> 
Coordinator
Feb 13, 2014 at 1:32 PM
This is really something you'll need to debug. And again, it's not an SPServices question.

M.