Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 43 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 281 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 106 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Inconsistent behavior of conditional formatting with Row context
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
-
Hi @N.V. Mehta
What is your BIP version are you using onprem or cloud or any integrated version?
Regards,
Arjun
0 -
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.0
