How to set color for a particular column in advance table?

How can we set the color of a particular column in advance table based on some parameter feteched from vo query in process request?

i have tried the same way as mentioned in the post but ,its giving error
java.lang.ArrayIndexOutOfBoundsException: 0
processRequest code
OAAdvancedTableBean table =
(OAAdvancedTableBean)webBean.findIndexedChildRecursive("TimEntAdvtbl");
if (table != null)
System.out.println("table");
OAColumnGroupBean daily =
(OAColumnGroupBean)table.findIndexedChildRecursive("DailyColGrp");
if (daily != null)
System.out.println("daily col");
OAColumnGroupBean ColGrp6 =
(OAColumnGroupBean)table.findIndexedChildRecursive("ColGrp6");
if (ColGrp6 != null)
System.out.println("ColGrp6");
OAColumnBean SatCol =
(OAColumnBean)webBean.findIndexedChildRecursive("SatCol");
if (SatCol != null)
System.out.println("col");
OAMessageTextInputBean sat1 =
(OAMessageTextInputBean)SatCol.findIndexedChildRecursive("sat");
if (sat1 != null)
System.out.println("sat1");
OADataBoundValueViewObject csssat= new OADataBoundValueViewObject(sat1,"Color");
sat1.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, csssat);
Error Page
## Detail 0 ##
java.lang.ArrayIndexOutOfBoundsException: 0
     at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3199)
     at oracle.sql.NUMBER.toString(NUMBER.java:761)
     at oracle.sql.NUMBER.stringValue(NUMBER.java:2090)
     at oracle.jbo.domain.Number.toString(Number.java:390)
     at oracle.apps.fnd.framework.webui.OADataBoundValue.formatObject(Unknown Source)
     at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
     at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
     at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.convertValue(Unknown Source)
     at oracle.apps.fnd.framework.webui.OADataBoundValue.getValue(Unknown Source)
     at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.getValue(Unknown Source)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(Unknown Source)
     at oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean.getAttributeValueImpl(Unknown Source)
     at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
Please help

Similar Messages

  • How to set color for a tabstrip in BSP

    Hello all,
    Can anyone please let me know how to set color for a tabstripn in BSP?
    I am using the below syntax but it still gives me the default color.
    <htmlb:content design="design2003" >
      <htmlb:page title="test " >
        <htmlb:form>
    <htmlb:tabStrip id         = "TabStrip"
                          bodyHeight = "200"
                          bodyColor  = "red"
                          width      = "700" >
    </htmlb:tabStrip>
    </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks,
    Sandeep

    Hi...
    The below code is working fine for me...
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="stg " >
        <htmlb:form>
          <htmlb:tabStrip width      = "430"
                          bodyColor  = "rgb(88,5,64)"
                          id         = "t1"
                          bodyHeight = "112" >
            <htmlb:tabStripItem id      = "t1"
                                index   = "1"
                                title   = "Sales"
                                tooltip = "My Tooltip for Tab 1" >
              <htmlb:textView text="Tab N 1" />
              <htmlb:tree id        = "treeReports"
                          showTitle = "true"
                          table2    = "<%= mt_nodes %>"
                          title     = "Menu"
                          width     = "100%" />
            </htmlb:tabStripItem>
            <htmlb:tabStripItem id      = "t2"
                                index   = "2"
                                title   = "Production"
                                tooltip = "My Tooltip for Tab 2" >
              <htmlb:textView text="Tab N 2" />
            </htmlb:tabStripItem>
          </htmlb:tabStrip>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

  • Background color change of a column in Advance table

    Hi,
    We have requirement to change the background color of column in advance table based on some condition. We tried putting code to change background color in Custom.xss using background-color property and setting newly created css dynamically based on condition but it seems it only changes the background color of text not the complete cell. We want to change the color of complete cell in an advance table.
    Please let me know if there is any other way I can achieve this requirement. Any help would be highly appreciated.
    Thanks

    <FONT FACE="Arial" size=2 color="2D0000">
    Pls look into "Alter Table"section.
    LOB_storage_clause
    This might help
    -SK
    </FONT>

  • How can set colour for a particular row?

    Hi all,
    in my context ,i have a field like epi_type.i want to set entire row in red colour wherever epi_type = emergency.
    How can i aceieve this?
    Regards,
    Ravi

    I'm assuming that you are using this ALV for WD, else I don't think it is possible in 'normal' table view.
    It seems not to be opening the thread I tried to provide when clicking so I will give the answer (copy from above mentioned thread):
    U will be having one Node for that ALV Table Know.Add one Attribute for eg., CELL_DESIGN of type WDUI_TABLE_CELL_DESIGN.In the Properties of Table Column Properties there is one Field Called CellDesign.U Map the Attribute CELL_DESIGN for the Column which u want Color.If u want for a Row then map that attribute for each column.
    U cant set ur own colors for the Cell.In the CellDesign Property u will be having a Dropdown in which a list of values will be present u can make use of that colors.
    U can give the CellDesign Colors from the Documentation such as badvalue_dark,badvalue_light,etc.,
    During the Runtime,based on the condition u can set the Values for that Attribute Using SET_ATTRIBUTE.
    For Eg.,
    DATA lo_nd_table TYPE REF TO if_wd_context_node.
    DATA lo_el_table TYPE REF TO if_wd_context_element.
    DATA lt_table TYPE wd_this->elements_table.
    DATA ls_table TYPE wd_this->element_table.
    lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_table ).
    get element via lead selection
    lo_el_table = lo_nd_table->get_element( ).
    lo_nd_table->get_static_attributes_table(
    IMPORTING
    table = lt_table ).
    loop at lt_table into ls_table.
    if ls_table-text = '1'.
    lo_el_table->set_attribute(
    name = `CELL_DESIGN`
    value = 'negative' ).
    elseif ls_table-text = '2'.
    lo_el_table->set_attribute(
    name = `CELL_DESIGN`
    value = 'positive' ).
    endif.
    endloop.
    Edited by: Micky Oestreich on Apr 16, 2008 10:56 PM

  • How to disable a Column for a particular row in Advanced Tables

    Hi All,
    We are using an Advanced Table for search criteria. Our requirement demands to disable a column (we are using messagechoice item in that column) for only first row. We use standard Add Another Row functionality to add the rows.For the remaining rows it (message choice) should be enabled. Can anyone help me to solve.
    Regards,
    Sundeep

    You can either use a Switcher or OADataBoundVariables for this.
    Please see the section OADataBoundVariable in the dev guide. Based on certain View Attribute value, you can set the specific column in the table as Read Only.
    Switcher can be very similar too. Decide an Attribute for the Switcher and make sure the first row (which you want to disable) has some specific value. All other rows should have some other value. Decode can help you here. Then you would need to create two cases. Under the specific to first row, have a read only item. For the other case, have an enterable item. A little read through of the Switcher chapter in the Dev guide would clarify the doubts if any.
    Regards
    Sumit

  • How to perform delete operation on Delete Column In Advance Table?

    Hi All,
    I have to add a delete column in seeded page(Advance table).
    For that I have followed jdev tutorial.Now after clicking delete image the column is not deleting also it is not throwing any error except mine.
    Please Help.
    Regards,
    SHD

    Hi AJ,
    In the seeded table there is a seeded column correct.Where it is using above parameter.But while I am using same parameter it is doing nothing.
    For deleting is it necessary to extend VO or EO?
    Here is my code in pfr
                                    String recordNumber = pageContext.getParameter("record");
                                    OAException mainMessage =
                                    new OAException("Are you sure you want to delete this employee"+recordNumber);
                                    OADialogPage dialogPage =
                                        new OADialogPage(OAException.WARNING, mainMessage, null, "",
                                    String yes = pageContext.getMessage("AK", "FWK_TBX_T_YES", null);
                                    String no = pageContext.getMessage("AK", "FWK_TBX_T_NO", null);
                                    dialogPage.setOkButtonItemName("DeleteYesButton");
                                    dialogPage.setOkButtonToPost(true);
                                    dialogPage.setNoButtonToPost(true);
                                    dialogPage.setPostToCallingPage(true);
                                    dialogPage.setOkButtonLabel(yes);
                                    dialogPage.setNoButtonLabel(no);
                                    java.util.Hashtable formParams = new java.util.Hashtable(1);
                                    formParams.put("compElementId", recordNumber);
                                    dialogPage.setFormParameters(formParams);
                                    pageContext.redirectToDialogPage(dialogPage);
                                } else if (pageContext.getParameter("DeleteYesButton") != null) {
                                    String recordNumber = pageContext.getParameter("record");
                                    Serializable[] parameters = { recordNumber };
                                    OAApplicationModule am = pageContext.getRootApplicationModule();
                                    OAApplicationModule compElementAM = (OAApplicationModule)am.findApplicationModule("xxCompElementsAM");
                                    if(compElementAM==null) {
                                        compElementAM=(OAApplicationModule)am.createApplicationModule("xxCompElementsAM","xxmycompany.oracle.apps.per.selfservice.competency.profile.server.xxCompElementsAM");
                                    compElementAM.invokeMethod("deleteRecord", parameters);
                                    MessageToken[] tokens =
                                    { new MessageToken("compElementId", recordNumber) };
                                    OAException message =
                                    new OAException("Are you sure you want to delete this employee"+recordNumber);
                                    pageContext.putDialogMessage(message); regards,SHD
    Edited by: SHD on May 6, 2011 3:31 AM

  • How to update all the record for a particular column in a table based on search criteria.

    Hi All,
    I am new to ADF. I have a requirement, where i have to perform mass update on a table.
    Scenario:
    Ex: I have a dept manual search region. where i search with deptId: 20. I get 20 records in my table. now i have  another region where i have a inputchoice list which contains all the columns names that exists in dept table. Beside that i have a input text box and an update button
    Now user, first searches with dept id:20 and clicks on search button, where it shows 20 record in the table. He then select a column from input choicelist(ex: ManagerId), then enters new value in the input box(ex: abc) then clicks on update button.
    Now i want, all the records in the ManagerId column with dept id:20 to be updated with the new value "abc"
    Can anyone help me with the code.
    Thanks in advance..

    Hi,
    If you go to your VO and generate the ViewObjectImpl, in there you can create a method which will contain two parameters, 1 the attribute name and 2 the value.
    Then you can follow something like explained in this post:
    ADF Tutorial: How to apply bulk actions to a view object rows
    The only difference is that you will need to create a method like this:
    public void updateAttribute(String attribute, Integer value){
            RowSetIterator iter = createRowSetIterator(null);
            while (iter.hasNext()){
                Row row = iter.next();
                row.setAttribute(attribute, value);
    Then you expose that as a client interface and then after you filter your table by your criteria you just need to execute this method passing the right parameters.
    Regards

  • To set color for barchart having datetime column

    Hi,
       I have a datetime column in the XSD,
    I was trying to set colors for the barchart through,  chart expert --> colorhighlight  ,here in  colorhighlight when i click on new I am getting a dialogue box asking to enter datetime in M:D:YYYY H:MM:SS TT format. why is this dialogue displayed ? How to overcome this.
    Regards,
    Deepa V

    Hi Deepa
    Please inform us with the following information:
    1: What is the version of Crysatl Reports that you are using?
    2: What is the Chart Type that you are uisng?
    3: Where are you placing this chart in the report?
    Regards
    Ashwini Yadav

  • How to set color to a column in ALV?

    Based on standard example BCALV_GRID_01 to modify,
    how to set color to a column???
    Moderator message: please search for available information/documentation before asking.
    Edited by: Thomas Zloch on Nov 6, 2010 9:43 AM

    Hi Sai ,
    you are posting the querry in the wrong forum ..
    but still I will answer ur querry...
    Incase you are not using the standard class to make your ALV then u can set the color of each column in the propertiesof column in the design time .
    Incase u see the colors in the design time but is not able to see the colors at the run time then you check the settings of the table I dont have system right now else I could have told you exact property...
    else if u r amking alv from the standard class then u will have to search the net for the method to color the same ..
    Thanks
    Sahil.

  • How to implement tooltip for the list items for the particular column in sharepoint 2013

    Hi,
    I had created a list, How to implement tooltip for the list items for the particular column in SharePoint 2013.
    Any help will be appreciated

    We can use JavaScript or JQuery to show the tooltips. Refer to the following similar thread.
    http://social.technet.microsoft.com/forums/en/sharepointdevelopmentprevious/thread/1dac3ae0-c9ce-419d-b6dd-08dd48284324
    http://stackoverflow.com/questions/3366515/small-description-window-on-mouse-hover-on-hyperlink
    http://spjsblog.com/2012/02/12/list-view-preview-item-on-hover-sharepoint-2010/

  • How set color for a ValidationTextField's hint?

    I want to set color for a ValidationTextField's hint, to
    implement watermark effect, how do it?

    Hi...
    The below code is working fine for me...
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="stg " >
        <htmlb:form>
          <htmlb:tabStrip width      = "430"
                          bodyColor  = "rgb(88,5,64)"
                          id         = "t1"
                          bodyHeight = "112" >
            <htmlb:tabStripItem id      = "t1"
                                index   = "1"
                                title   = "Sales"
                                tooltip = "My Tooltip for Tab 1" >
              <htmlb:textView text="Tab N 1" />
              <htmlb:tree id        = "treeReports"
                          showTitle = "true"
                          table2    = "<%= mt_nodes %>"
                          title     = "Menu"
                          width     = "100%" />
            </htmlb:tabStripItem>
            <htmlb:tabStripItem id      = "t2"
                                index   = "2"
                                title   = "Production"
                                tooltip = "My Tooltip for Tab 2" >
              <htmlb:textView text="Tab N 2" />
            </htmlb:tabStripItem>
          </htmlb:tabStrip>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

  • How to provide hyperlink for a particular field in ALV

    Hi,
      How to provide hyperlink for a particular field in alv report.
    Regards,
    Ramu.

    Yes you can do that. using the fieldcatalog there is an option for that. give HOT_SPOT = 'X'. for the column you want.
    wa_field-hotspot = 'X'.
    REPORT  ztest_alv.
    TYPE-POOLS:slis.
    DATA:it_fieldcat  TYPE  slis_t_fieldcat_alv,
         wa_field LIKE LINE OF it_fieldcat.
    DATA: BEGIN OF it_likp OCCURS 0,
           vbeln TYPE likp-vbeln,
          END OF it_likp.
    DATA: layout TYPE slis_layout_alv.
    wa_field-fieldname = 'VBELN'.
    wa_field-tabname = 'IT_LIKP'.
    wa_field-hotspot = 'X'.
    wa_field-outputlen = 10.
    wa_field-no_zero = 'X'.
    wa_field-seltext_l = 'Sales'.
    APPEND wa_field TO it_fieldcat.
    SELECT vbeln FROM likp
    UP TO 10 ROWS
    INTO TABLE it_likp.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program      = sy-repid
        is_layout               = layout
        i_callback_user_command = 'USER_COMMAND'
        it_fieldcat             = it_fieldcat
      TABLES
        t_outtab                = it_likp
      EXCEPTIONS
        program_error           = 1.
    *&      Form  user_Command
    *       text
    *      -->UCOMM      text
    *      -->SELFIELD   text
    FORM user_command USING ucomm TYPE sy-ucomm
                        selfield TYPE slis_selfield.
      CASE ucomm.
        WHEN '&IC1'.
          SET PARAMETER ID 'VL'  FIELD selfield-value.
          CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.
      ENDCASE.
    ENDFORM.                    "user_Command

  • Set filter for only one column in tableview

    Hi
    i am using in MVC a htmlb:tableview with filter in only one column of 8.
    This is all working fine, except that the user can enter a searchsting in the filterfield for all columns, but in handle_event (of the controller) ; i only react to a text in the filterfield of column 4 and ignore all other filtertext , which were maybe entered in the other columns.
    My question:
    how can i  enter the filter only for one column, in a way that the user cannot enter any text in the filterfield of the other columns, only in column 4 ?
    my view:
    <htmlb:tableView id             = "requirements"
                     table          = "//model/pdst_reqs"
                     filter         = "APPLICATION"                
                     keyColumn       = "EXTID"
                     iterator        = "<%=model%>"
                     footerVisible   = "FALSE"
                     encode          = "TRUE"
                     visibleRowCount = "<%=model->rowcount%>"
                     width           = "100%"/>
    Best Regards
    Britta

    You can disbale the Filter for the particular column by setting the DISABLE_FILTER in the Iterator method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS. Here is the sample code
    method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS .
      CLEAR p_column_definitions.
      CLEAR p_overwrites.
      data tv_column TYPE TABLEVIEWCONTROL.
      tv_column-COLUMNNAME          = 'FLDATE'.
      tv_column-SORT                = 'X'.
      tv_column-EDIT                = 'X'.
      tv_column-ONCELLCLICK         = 'MyCellClick1'.
      tv_column-title               = 'Date '.
      APPEND tv_column TO p_column_definitions.
      CLEAR tv_column.
      tv_column-COLUMNNAME          = 'PRICE'.
      tv_column-horizontalAlignment = 'right'.
      tv_column-verticalAlignment   = 'middle'.
      tv_column-ONCELLCLICK         = 'MyCellClick2'.
      tv_column-title               = 'Currency'. 
      tv_column-EDIT                = 'X'.
      tv_column-DISABLE_FILTER      = 'X'.    " <-------Like this
      APPEND tv_column TO p_column_definitions.
    endmethod.
    Hope this will solve your problem.
    Raja

  • Setting Color for Records in forms6i

    Dear All
    How can I set color for particular records on a form. i.e. Set the color of all employees whose salary is greater than 2000 to Red and All the rest to Green
    Solomon

    Hello,
    6i is an old version and I don't remember if there is a Set_Item_Instance_Property() built-in. If yes, you can use it with a Visual Attribute that held the colors.
    Francois

  • How to set colors to table control?

    Hi all,
    can we set colors to tables columns and rows?? How can we acieve this? Any help please
    Thanks,
    Madhan.

    Hi All
    thanks for your replies..
    data tab type IF_main_view=>Elements_segment.
      data line type IF_main_view=>Element_segment.
      data node_info type ref to if_wd_context_node_info.
      data attribute_info type wdr_context_attribute_info.
      data attr_value type WDR_CONTEXT_ATTR_VALUE.
      data wd_standard_cell type ref to cl_wd_table_standard_cell.
      data component like line of cl_abap_structdescr=>components.
      data wd_table_column type ref to cl_wd_table_column.
      node_info = lo_nd_segment->get_node_info( ).
      attribute_info = node_info->get_attribute( 'CELL_DESIGN' ).
    if component-name = 'SEGMENT'.
      wd_standard_cell->set_cell_design( CL_WD_ABSTR_MASTER_TABLE_COL=>E_CELL_DESIGN-BADVALUE_MEDIUM ).
    endif.
    i am trying to set color for  some colomns, but i am not getting any colors??? anything wrong in this.. please help
    thanks,
    Madhan.

Maybe you are looking for