[Working with scripts]: Alternate Colour for Records in the Detail Band

This allows the data to be presented with alternate background colors per records. Use the following scripts in the individual bands -

Report:On Render Begin -

var Count= 1;

Detail:On Render Begin -

if (Count%2==1)
{
setBackgroundColor("rgb(255,153,153)");
}
else
{
setBackgroundColor("rgb(122,191,237,77)");
}
Count++;