EBS Customizations (MOSC)
MOSC Banner

Discussions

Color The Item Based On condition in Advanced table on the oaf page

edited Jul 8, 2022 12:57PM in EBS Customizations (MOSC) 2 commentsAnswered

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>

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center