Oracle Analytics Publisher

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

Inconsistent behavior of conditional formatting with Row context

Received Response
21
Views
2
Comments
N.V. Mehta
N.V. Mehta Rank 1 - Community Starter

I am using following code in my RTF template to set background gray for the alternative rows.

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

This works.

When I use the similar code to set the top border of the cell solid .5px for the first row and bottom border for the last row it does not work with the following code.

<?if@row:position()=last()?><xsl:attribute xdofo:ctx="incontext" name=”border-bottom-style”>solid</xsl:attribute><xsl:attribute xdofo:ctx="incontext" name=”border-bottom-width”>.5px</xsl:attribute></xsl:attribute><?end if?>

<?if@row:position()=1?><xsl:attribute xdofo:ctx="incontext" name=”border-top-style”>solid</xsl:attribute><xsl:attribute xdofo:ctx="incontext" name=”border-top-width”>.5px</xsl:attribute></xsl:attribute><?end if?>

If I use the code without row context and repeat it for each column in the table it works.

<?if:position()=last()?><xsl:attribute xdofo:ctx="incontext" name=”border-bottom-style”>solid</xsl:attribute><xsl:attribute xdofo:ctx="incontext" name=”border-bottom-width”>.5px</xsl:attribute></xsl:attribute><?end if?>

<?if:position()=1?><xsl:attribute xdofo:ctx="incontext" name=”border-top-style”>solid</xsl:attribute><xsl:attribute xdofo:ctx="incontext" name=”border-top-width”>.5px</xsl:attribute></xsl:attribute><?end if?>

Does any one have any idea what is going wrong here?


Regards,

Nitin Mehta.

Answers

  • Mallikarjuna Kuppauru-Oracle
    Mallikarjuna Kuppauru-Oracle Rank 8 - Analytics Strategist

    Hi @N.V. Mehta

    What is your BIP version are you using onprem or cloud or any integrated version?

    Regards,

    Arjun

  • N.V. Mehta
    N.V. Mehta Rank 1 - Community Starter

    Hi,
    I am using BI Published on Oracle Fusion Cloud ERP BIP server and BIP Template Builder Desktop to create RTF template.

    Desktop Version: 12.2.1.4.0

    Kind Regards,
    Nitin.