Custom Load Quote XSLT Transformation - Managing Revision Column

Users who use custom load quote xslt transformation, should replace following parts of custom transformation in order to enable functionality of managing revision column through administration :

1. Remove following part of code:

 <xsl:if test="not(/LoadQuote/IsBackdoor = '1') and /LoadQuote/SelectMode != 1">
  <th>{{xsltRevLQ}}.</th>
 </xsl:if>
 <xsl:if test="/LoadQuote/SelectMode = 1">
  <th><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text></th>
 </xsl:if>

2. Replace this part of code:

 <xsl:for-each select="./Header/Column">
    <!-- HERE IS EXISTING CODE LOGIC FOR DISPLAY COLUMNS. IT SHOULD BE ADDED TO APPROPRIATE POSITION IN CHANGED TRANSFORMATION - SEE CODE BELOW  -->
 </xsl:for-each>

with this one:

 <xsl:for-each select="./Header/Column">
  <th>
   <table cellspacing="0" cellpadding="0" border="0" width="100%">
    <tr>
     <xsl:choose>
      <xsl:when test="contains(current()/@ColumnName, 'REVISION')">
       <!-- existing condition for display revision column -->
       <xsl:if test="not(/LoadQuote/IsBackdoor = '1') and /LoadQuote/SelectMode != 1">
        <td><xsl:value-of select="."/></td>
       </xsl:if>
       <xsl:if test="/LoadQuote/SelectMode = 1">
        <td><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text></td>
       </xsl:if>
      </xsl:when>
      <xsl:otherwise>
       <!-- HERE GOES EXISTING CODE LOGIC FOR DISPLAY COLUMNS !!! -->
      </xsl:otherwise>
     </xsl:choose>
    </tr>
   </table>
  </th>
 </xsl:for-each>

3. Remove following part of code:

 <xsl:if test="not(/LoadQuote/IsBackdoor = '1') and /LoadQuote/SelectMode != 1">
  <td style="text-align: center;">
   <a>
    <xsl:attribute name="href">Revisions.aspx?cr=1&amp;o=<xsl:value-of select="@OwnerIdCrypted"/>&amp;c=<xsl:value-of select="@CartIdCrypted"/></xsl:attribute>
     <xsl:value-of select="@ActiveRev" disable-output-escaping="yes"/>
   </a>
  </td>
 </xsl:if>

4. Replace following part of code inside <xsl:for-each select=”./Column”> node:

4a. If there is ScParam part in <xsl:for-each select=”./Column”> node, then replace following part of code:

 <xsl:otherwise>
  <![CDATA[ ]]><xsl:value-of disable-output-escaping="yes" select="." />
 </xsl:otherwise>

with this one:

 <xsl:otherwise>
  <xsl:choose>
   <xsl:when test="contains(current()/@ColumnName, 'revision')">
    <!-- existing condition for display revision column -->
    <xsl:if test="not(/LoadQuote/IsBackdoor = '1') and /LoadQuote/SelectMode != 1">
     <a>
      <xsl:attribute name="href">Revisions.aspx?cr=1&amp;o=<xsl:value-of select="../@OwnerIdCrypted"/>&amp;c=<xsl:value-of select="../@CartIdCrypted"/></xsl:attribute>
      <xsl:value-of select="../@ActiveRev" disable-output-escaping="yes"/>
     </a>
    </xsl:if>
   </xsl:when>
   <xsl:otherwise>
    <![CDATA[ ]]><xsl:value-of disable-output-escaping="yes" select="." />  
   </xsl:otherwise>
  </xsl:choose>
 </xsl:otherwise>
You are here: SAP Sales Cloud CPQ Online HelpUser Side HelpLoad Existing QuotesCustom Load Quote XSLT Transformation - Managing Revision Column