ReplaceFFClass method: Field class
Syntax
ReplaceFFClass(from_style, to_style, append)
Description
Use the ReplaceFFClass method to update the value of the FreeFormStyleName property. This method replaces the from_style with the to_style. If the from_style does not exist, the to_style is added to the style list, only if the optional append parameter is True.
Note:
ReplaceFFStyle can only replace the styles set through PeopleCode using the AddFFClass method or the FreeFormStyleName property and the not those set through Application Designer.
Important:
Use this method within fluid applications only.
Parameters
| Parameter | Description |
|---|---|
|
from_style |
Specifies the style (or list of styles) to be replaced as a string value. |
|
to_style |
Specifies the replacement style (or list of styles) as a string value. |
|
append |
Specifies a Boolean value indicating whether the to_style value is to be appended when the from_style does not exist. The default value is False. |
Returns
None.
Example
&field1.ReplaceFFClass("dateStyle", "emphasis");
&field2.ReplaceFFClass("hidden", "");