Monday, February 21, 2011

Using Inline Custom CSS

 
import oracle.cabo.style.CSSStyle;
CSSStyle customUnCss = new CSSStyle();
customUnCss.setProperty("text-transform","uppercase");
customUnCss.setProperty("color", "#F6358A");//# -purple
OAStaticStyledTextBean staticbean = (OAStaticStyledTextBean) webBean.findChildRecursive("approvedIJPText");
if(staticbean!=null)
{
staticbean.setInlineStyle(customCss); //set custom css style
}

Sunday, February 20, 2011

Dynamically changing the Table Column Header

 
import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;
import oracle.apps.fnd.framework.webui.beans.table.OAColumnBean;
import oracle.apps.fnd.framework.webui.beans.table.OASortableHeaderBean;

OAAdvancedTableBean tableBean = (OAAdvancedTableBean)webBean.findIndexedChildRecursive("AdvTabRN");
OAColumnBean columnBean = (OAColumnBean)tableBean.findIndexedChildRecursive("empidCol");
OASortableHeaderBean colHeaderBean = (OASortableHeaderBean)columnBean.getColumnHeader();
colHeaderBean.setText("<newText>");