Using JQUERY to add styling to an OrgNodes tag in an Impact Operator View
Lorna Kelleher 270005WTBR Visits (4612)
The following example shows how to use JQUERY to set the background row color in an orgNodes tag.
Row color is set depending on field values.
1. myAlerts is an array of impact objects gathered by a GetByFilter call in an impact policy
2. The orgNodes tag in the operator view HTML files is used to display these alerts
3. By adding the following JQUERY code to the head of the operator view HTML file, the orgNodes tag is traversed.
The value in the 4th <TD> cell is checked and the row(parent) color is set depending on the value.
Useful for setting row color depending on e.g severity of Alerts.
The following image is shot of the resulting orgNodes tag.