BI Publisher (MOSC)

MOSC Banner

Highlighting alternate rows in BI Publisher

edited Oct 6, 2014 10:05AM in BI Publisher (MOSC) 8 commentsAnswered

Hi,

I want to highlight alternate rows in report created using RTF template in MS Word using BI Publisher plug-in.

I am able to successfully highlight alternate rows only for the first column of the row (as shown below), where as I want to highlight the entire row.

The code I used is:

<?if@row:position() mod 2=0?><xsl:attribute name="background-color" xdofo:ctx="incontext">green</xsl:attribute><?end if?>

<?if@row:position() mod 2=0?><xsl:attribute xdofo:ctx="incontext" name="background-color">#CC0000</xsl:attribute><?attribute@incontext:color;'green'?><?end if?>

<?if@row:position() mod 2=0?><?attribute@incontext:color;'red'?><?end if?>

The last piece of code is able to highlight the text of every alternate rows, but my requirement is I want to highlight the entire background of each cell in the row (shown below)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center