|
|
|
Re: Conditional Column Formatting in an Interactive Report? [message #606220 is a reply to message #528982] |
Tue, 21 January 2014 04:42 |
sanjeevi
Messages: 2 Registered: February 2009 Location: chennai
|
Junior Member |
|
|
We had a similar problem in our company and used Dynamic Action and Jquery to resolved the above problem.
$("td[headers='Dept Na']").each(function(index){
if($("td[headers='Dept status']").eq(index).text() == 'N'){
$(this).css({"color":"red"});
}
});
Also removed Span tag from the SQL Query which we used in the Interactive Report
|
|
|
Re: Conditional Column Formatting in an Interactive Report? [message #608948 is a reply to message #528927] |
Thu, 27 February 2014 05:55 |
|
imontero
Messages: 4 Registered: February 2014
|
Junior Member |
|
|
Hi,
I also use jquery and dynamic actions. When the report is generated the following is also called:
Function and Global Variable Declaration
function Col_Formatting()
{
$(".apexir_WORKSHEET_DATA td:nth-child(n+10):contains('N')").css({"font-weight":"bold","color":"red"});
$(".highlight-row td:nth-child(n+10):contains('N')").css({"font-weight":"bold","color":"red"});
}
What the code above is doing is to highlight in red the columns based on the value in "contains" as of column number 10. apexir_WORKSHEET_DATA and highlight-row are the report classes I am applying the css to. This is called through a Dynamic action.
Hope this helps!
[Updated on: Thu, 27 February 2014 05:56] Report message to a moderator
|
|
|