Portal Foreground color

I have the following code that changes the colum of a portals foreground color;

if (productsalesorders_to_productsalesorderlineitems.invstatus == ‘Shipped’)
{
elements.ItemStatus.fgcolor = ‘#cc0000’;
elements.EstShipDate.fgcolor = ‘#cc0000’;
elements.ServiceStatus.fgcolor = ‘#cc0000’;
}
else
{
elements.ItemStatus.fgcolor = ‘#000000’;
elements.EstShipDate.fgcolor = ‘#000000’;
elements.ServiceStatus.fgcolor = ‘#000000’;
}

I want to be able to change the row color, not the entire column. I cannot reach elements via the relationship tree, how could I accomplish ths?

Thanks,
Erich

Is it possible to change the forground color of a field displayed in a portal based on the value of the field??

Hi Erich,

It’s not currently possible to change the CELL color - just the foreground color of the entire portal object.

ok, Thanks Bob.