How do I shade every 3rd Line? — Oracle Analytics

Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

How do I shade every 3rd Line?

Received Response
42
Views
2
Comments

Summary

How do I shade every 3rd Line?

Content

Is there a way to do conditional formatting (or equivalent) that would shade every 3rd line in a table (that is part of a repeating section).

I'm using BIP-Embedded (via WORD)

Answers

  • Brajesh Shukla-95078
    Brajesh Shukla-95078 Rank 7 - Analytics Coach

    You can use below condition just after for-each

    <?if@row:position() mod 3=0?> <xsl:attribute name="background-color" xdofo:ctx="incontext">lightgray</xsl:attribute><?end if?>
  • Pavan kumar.
    Pavan kumar. Rank 5 - Community Champion

    Hi,

    Add a form field for the first column in the table and you just add below code in to form field help text.

    <?if@row:position:() mod 3=0?>

    <xsl:attribute name="background-color" xdofo:ctx="in context">lightgray</xsl:attribute>

    <?end if?>

    Regards,

    Pavan