Hi,
I have a added a custom column in the job monitor column.But I want to change the color of it based the status of the task.
Lets say if it is on hold then will display "green" and so on.Is there any way this change can be done ?
According to the support guys since the code is precompiled nothing can be done,and if we change the monitor.css file,then color across the job monitor panel will be changed.
Is there any work around this?
Kindly help.
Regards,
Mayank Singh
Answer by Hrishikesh Gilda (151) | Jun 23, 2014 at 06:39 AM
This task was completed. We were able to change the background color of each row using JQuery code in the jmonitor.aspx page.
Thank You.
Hrishikesh Gilda
Answer by Hrishikesh Gilda (151) | Jun 26, 2014 at 09:18 AM
Hi Thrinath,
Guess this may help you:
<script type="text/javascript">
$(document).ready(function () {
$("td").each(function () {
var a = $(this).text()
if (a == "Process") {
$(this).css("background-color", "green");
$(this).css("color", "white");
//$(this).addClass("process");
}
if (a == "Cannot Process") {
$(this).css("background-color", "red");
$(this).css("color", "white");
}
if (a == "on hold") {
$(this).css("background-color", "#FF9900");
$(this).css("color", "white");
}
})
}); </script>
This will color the cell that satisfies the condition. I have the text value 'Process' coming from the engine database view - JobMonitor and then the cell gets colored as the page loads.
The hash code - '#FF9900' is for orange color. Not sure, but JQuery did not accept the word 'Orange' as a color.
Let me know if you need anything else.
Hrishikesh Gilda
Custom Column in Job Monitor 2 Answers
Rearranging order of columns in Job Monitor panel 8 Answers
Thin client Job monitor custom Column with text box 2 Answers
IBM Datacap - Same user be disallowed from running two verification steps for same batch 3 Answers
Updating Custom Column - Discrepancy between result from DCDesktop processing & Rulerunner… 4 Answers