1 Reply Latest reply: Feb 6, 2013 11:13 AM by 898100 RSS

    How to change the back ground color of Headers in OAF Advance Table/Table

    898100
      Dear All,

      I have a requiremnet to change the color of the header background to RED in OAF. We have written the below code in CO PR .Its changing the background color only to the prompt and not the entire header.

      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
      {
      super.processRequest(pageContext, webBean);
      OAApplicationModule am = pageContext.getApplicationModule(webBean);
      basicDetVOImpl payVO = (basicDetVOImpl)am.findViewObject("basicDetVO1");
      payVO.executeQuery();
      OAAdvancedTableBean tableBean = (OAAdvancedTableBean)webBean.findIndexedChildRecursive("AdvTabRN");
      OAColumnBean columnBean = (OAColumnBean)tableBean.findIndexedChildRecursive("empNum");
      OASortableHeaderBean colHeaderBean = (OASortableHeaderBean)columnBean.getColumnHeader();
      System.out.println("colHeaderBean is"+colHeaderBean);
      CSSStyle oraaniltext = new CSSStyle();
      oraaniltext.setProperty("background-color", "#FF0000");
      colHeaderBean.setInlineStyle(oraaniltext);
      }

      Please suggest
      Your earlier response would be appriciated.