Discussions
Color The Item Based On condition in Advanced table on the oaf page
I have requirement to highlight the shiptositeid values based on ship to status.
I have created one attribute in existing VO saying color
VO : DECODE(hps_ship.status,'I','1','2') color
Controller class:
OAAdvancedTableBean table = (OAAdvancedTableBean)webBean.findIndexedChildRecursive("ExceptionTbl");
OAColumnBean ejobcol = (OAColumnBean)webBean.findIndexedChildRecursive("colShip2SiteId");
OAMessageStyledTextBean job = (OAMessageStyledTextBean)ejobcol.findIndexedChildRecursive("shipToSiteId");//for which item you wanted color
OADataBoundValueViewObject cssjob = new OADataBoundValueViewObject(job,"Color");
job.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, cssjob);
and i have added custom css style in custom.xss in $OA_HTML/cabo/styles
<style selector=".1">
<property name="color">##FF0000</property>
</style>