kipsta
11-06-2004, 09:00 AM
I have a test field in a view that I want to dynamically change the color of depending upon the data. The field is defined with fgcolor="green", what I want to do is change it to red depending upon the data. Unfortunately, if I execute a setAttribute on it for the fgcolor, it turns the test to black, no matter what I do.
What I have in the code is below:
selectedView.offsetText.setAttribute('fgcolor', 'red');
if I remove this line, the text stays green as previously defined, but with this, it turns black.
Any ideas?
What I have in the code is below:
selectedView.offsetText.setAttribute('fgcolor', 'red');
if I remove this line, the text stays green as previously defined, but with this, it turns black.
Any ideas?