Differences

This shows you the differences between two versions of the page.

usersideinformation:loadexistingquotes:custom_load_quote_xslt_transformation [2012/08/17 08:44]
sobradovic
usersideinformation:loadexistingquotes:custom_load_quote_xslt_transformation [2012/08/17 08:44] (current)
Line 1: Line 1:
 +====== 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:
 +
 +<code xml>
 + <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>
 +</code>
 +
 +2. Replace this part of code:
 +
 +<code xml>
 + <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>
 +</code>
 +
 +with this one:
 +
 +<code xml>
 + <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>
 +</code>
 +
 +3. Remove following part of code:
 +
 +<code xml>
 + <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>
 +</code>
 +
 +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:
 +
 +<code xml>
 + <xsl:otherwise>
 +  <![CDATA[ ]]><xsl:value-of disable-output-escaping="yes" select="." />
 + </xsl:otherwise>
 +</code>
 +
 +with this one:
 +
 +<code xml>
 + <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>
 +</code>
You are here: SAP Sales Cloud CPQ Online HelpUser Side HelpLoad Existing QuotesCustom Load Quote XSLT Transformation - Managing Revision Column