Report to include Internal Notes

Comments

4 comments

  • Avatar
    Emily

    Hello Dave-

    Thanks for reaching out! We just have to change your code a bit to get the notes to appear. Try: 

    <td style="{$summaryDetailContentStyle};">
    <xsl:for-each select=".//Note[Visibility='Internal']">
    <xsl:value-of select="Text" />
    </xsl:for-each>
    </td>

    Please let me know if this works for you! 

    0
    Comment actions Permalink
  • Avatar
    Dave Burnett

    Thanks, Emily. That gets me closer but that includes/repeats every highlighted order's notes on every line of the report rather than just the one(s) associated with each individual order.

    0
    Comment actions Permalink
  • Avatar
    Emily

    Hey Dave-

    Try this instead! It should display the individual note for each order.

    <td style="{$summaryDetailContentStyle};">
    <xsl:for-each select="././Note[Visibility='Internal']">
    <xsl:value-of select="Text" />
    </xsl:for-each>
    </td>
    0
    Comment actions Permalink
  • Avatar
    Dave Burnett

    Thanks again, Emily. I got it worked out. I missed that I was already in "Customer/Order" from earlier in the code so selecting it again wasn't getting me anywhere (big "duh" moment). I kept the variable because it's common among most other native reports, and the line break because it helps separate notes if there are more than one. Here's the final code that worked:

    <td style="{$summaryDetailContentStyle};">
    <xsl:variable name="order" select="Customer/Order" />
    <xsl:for-each select="$order/Note[Visibility='Internal']">
    <xsl:value-of select="Text" />
    <br />
    </xsl:for-each>
    </td>

    0
    Comment actions Permalink

Please sign in to leave a comment.