We added code today to scroll through the months. Here’s what it breaks down to:
<xsl:if test="/__ROOT__/_get/month >= 1">The above means if the value of the month is greater than or equal to 1 (January)
<xsl:value-of select="//link_prefix"/>reports-simple-cash-flow&month=<xsl:if test="//_get/month <= 10">0</xsl:if>
This is to fix a glitch that gives the software a problem scrolling from 09 September -10 October
<xsl:value-of select="/__ROOT__/_get/month - 1"/>Causes the arrow to decrease the month by 1
<xsl:if test="not(/__ROOT__/_get/month >= 1)"><img src="{//path_prefix}/images/buttons/out_d.gif"/></xsl:if></td>This line tell is if the month is January (month 01) do not allow the user to continue to scroll.
0 Responses to “XSL scrolling through the months”