Oracle Analytics Publisher

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

Conditional formatting in RTF template - Some attribute works some not

Closed
190
Views
1
Comments
Rank 1 - Community Starter
edited Jul 23, 2024 3:42PM in Oracle Analytics Publisher

To change background color of the alternate rows I am using following code

<?if@row:number(position() mod 2)=0?><?attribute@incontext:background-color;#d9d9d9?>

Does not work, background color remains unchanged.

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

do work. Font color is turns red in the alternate rows.

Same thing happens when I wish to set the last row of the report to have bottom border solid .5pt

<?if@row:number(position)=number(last())?><?attribute@incontext:color;'red'?><?end if?>

works, but

<?if@row:number(position())=number(last())?><?attribute@incontext:border-bottom-style;'solid'?><?attribute@incontext:border-bottom-width;.5pt?>?end if?>

does not!!

Answers

This discussion has been closed.