Wednesday, 15 August 2018

oaf change text color

oaf change text color

 
In this post , We will Discuss about , how we can change the text color in the OAF Page. Some times we need to highlighted the text colors for some fields of the OAF Page. This Requirment related to highlight some sensitive information's in the Red color for some fields of the OAF Page. Here below , I will share the working example how we can change the color of the text in the red for the OAF page. We will need the help of the CSS class to achieve this Requirment. When ever there is a business validation failure display the content(text) in red color/other or mark the text.
This can be achieved by defining a custom css style.
 

Sample code of oaf change text color

 
CSSStyle cellBGColor = new CSSStyle();
cellBGColor.setProperty("color","#FF0000");
#FF0000--red color
OAMessageStyledTextBean Status=(OAMessageStyledTextBean)webBean.findChildRecursive("Status");

if(Status != null )
Status.setInlineStyle(cellBGColor);
 

1 comments:

Utsav Gunjan said...

How can we select a particular row and change its color in adv. table in oaf?

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *