Categories
- All Categories
- 75 Oracle Analytics News
- 7 Oracle Analytics Videos
- 14K Oracle Analytics Forums
- 5.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 40 Oracle Analytics Trainings
- 59 Oracle Analytics Data Visualizations
- 2 Oracle Analytics Data Visualizations Challenge
- 3 Oracle Analytics Career
- 4 Oracle Analytics Industry
- 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