How do I dynamically change field text color in RTF template for BI Publisher report?

abedjaji

Member
How do I dynamically change field text color in RTF template for BI Publisher report?

Forexample, if my field called 'LEVEL' value = 'Platinum' then I want field text color to be Platinum Color: C-20%, M-9%, Y-7%, K-44%
or if 'LEVEL' value = 'Gold' then I want field text color to be Gold Color: C-14%, M-34%, Y-98%, K-6%.

Please help, thanks!
 
Hi,

Place a blank field before the text field you want to change the color of and write the following code in it:

<?if:LEVEL='Platinum'?><?attribute@incontext:color;'Color-Name'?><?end if?>
<?if:LEVEL='Gold'?><?attribute@incontext:color;'Color-Name'?><?end if?>


Regards,
Jitendra
 
Back
Top