Spaces/Official ESi/Scriptaculous & Adv. Tags

Highlight an entire cell with a WebEOC list color

Andrew Donnan
posted this on November 25, 2008 15:58

In order for this to work, you must remove the bgColor attribute from the <td> tag if one exists.  In this example the eocfield name is "status" and the WebEOC list is named "status_list"

<attribute name="bgColor">
<if test="@status and @status != ''">#
<value-of select="/data/listitems[@listname='status_list' and @name=current()/@status]/@listvalue">
</value-of>
</if>
</attribute>
<eocfield name="status"></eocfield>