This script changes the color and size of the text in one field based on the contents of a second field ::||::|||||:::::::
_____::||::|||||:::::::
_____::||::|||||:::::::
function Applet_ChangeRecord ()
{
var CtrlCurrency = this.FindControl("Currency");
var bcCase = this.BusComp();
var strValue = bcCase.GetFieldValue("Currency");
if (strValue == "USD")
{
CtrlCurrency.SetProperty("FontColor", "#000000");
CtrlCurrency.SetProperty("FontSize", "8");
CtrlCurrency.SetProperty("FontStyle", "Normal");
return ("ContinueOperation");
}// end if
else
{
CtrlCurrency.SetProperty("FontColor", "#ff0000");
CtrlCurrency.SetProperty("FontSize", "12");
CtrlCurrency.SetProperty("FontStyle", "Bold");
}//end else
}
No comments:
Post a Comment