This post is a contribution from Vishnu. Thanks for his contribution.
This post describes how to change colors on the field controls. The document also describes changing font, its size, color and background color.
Click Here to Download this document.
Please feel free to participate if you have anything to share. Thanks.
Related posts(Auto Generated):





May 7th, 2009 at 2:07 pm
Hi,
I use Siebel 7.5, but since new internet explorer 7 was installed, Siebel refresh many times and start again when working, if have this experience, could you please let me know how fix this problem?
Thanks and best regards,
Andres
May 7th, 2009 at 5:42 pm
IE7 is relatively new. some activex controls dont work right. you need to apply a patch to Siebel to work on IE7. check supportweb.
September 8th, 2009 at 6:24 am
Hi,
How to change the font color/ Background (Label or Text)with condition’s like if condition is true different color(Red)or condition fails (Black)no changes.
thanks in advance
Manju
September 9th, 2009 at 5:32 am
your best bet would be to use toggle applet based on the condition. one applet will have colored label and other wont. Good Luck.
November 11th, 2009 at 9:49 am
You could change the control’s color property at runtime using a browserscript. Have a look here: http://siebelunleashed.com/find-control-method-your-gateway-to-dom/
February 22nd, 2010 at 4:46 am
Use this but only in Browser Script
The SetProperty method sets visual properties of a control.
Syntax
controlVar.SetProperty(propName, propValue)
Argument Description
propName
The name of the property to be set, as described in the following table
propValue
The value to assign to the property, as described in the following table
Returns
Not applicable
Usage
SetProperty can be used with the following controls: CheckBox, ComboBox, TextBox, and TextArea.
If more than one property is to be set, each must be set in a separate statement.
The following table lists the properties that can be set for a control, and the values that can be assigned to them:
Property Value Description
BgColor
string
Determines background color for a label; for example, red is “#ff0000″, green is “#00ff00″, and blue is “#0000ff”
Enabled
TRUE or FALSE
Is the button active? (Unless explicitly modified by using SetProperty, default is TRUE.)
FontColor
string
Determines font color for a label; for example, green is “#00ff00″
FontType
string
Determines font type for a label; for example, “Times Roman”
FontSize
string
Determines font size for a label; for example, “12 pt”
FontStyle
string
Determines font style for a label; for example, “italic”
Height
string
Determines height for a control, in pixels; for example, “5″
Shown
TRUE or FALSE
Is the control shown? (Unless explicitly modified by using SetProperty, default is as defined in the repository.)
ReadOnly
TRUE or FALSE
Determines whether the control is read-only. Defaults to repository definition unless explicitly modified by using SetProperty.
Visible
TRUE or FALSE
Determines whether the control is visible. Defaults to repository definition unless explicitly modified by using SetProperty.
Width
string
Determines width for a control, in pixels; for example, “80″
Used With
Browser Script
Example
The following code shows the use of SetProperty:
objCheckBox.SetProperty(”FontColor”, “#00ff00″);
objCheckBox.SetProperty(”FontStyle”, “italic”);
objCheckBox.SetProperty(”FontType”, “Verdana”);
objCheckBox.SetProperty(”FontSize”, “14 pt”);
objCheckBox.SetProperty(”BgColor”, “#00f000″);
objCheckBox.SetProperty(”Width”, “100″);
objCheckBox.SetProperty(”Height”, “100″);